NullPointerException with panel.loadlayout

cmweb

Active Member
Licensed User
Longtime User
Hey, hello,

with B4A 2.3 I'm getting a NullPointerException when loading a Layout to a Panel:

B4X:
dim setscroll as ScrollView
setscroll.Initialize(Main.hoehe)
setscroll.Panel.LoadLayout("settings")    '->> results in a NullPointerException
saveerror = False

This code worked without any problems in previous B4A versions.

How can I get around this error?

Best regards,

Carsten
 
Top