Android Question abracadabra errorcode for me

parijs

Active Member
Licensed User
Longtime User
what does this errorcode mean

java.lang.NullPointerException

at anywheresoftware.b4a.objects.ViewWrapper.SetLayout(ViewWrapper.java:284)
at com.transmis.tt._activity_create(tt.java:1640)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
at com.transmis.tt.afterFirstLayout(tt.java:98)
at com.transmis.tt.access$100(tt.java:16)
at com.transmis.tt$WaitForLayout.run(tt.java:76)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
 

parijs

Active Member
Licensed User
Longtime User
I understand

The error came from a simple line
Label96.SetLayout (55% x, y 251%, 14% x, 35dip)

I single quotes a few lines in the beginning
'lbl1.SetLayout (25% x 3% Y, 55% x, 30dip)
'Label1.SetLayout (2% x, y 9%, 25% x, 30dip)
'Lblontwepbin.SetLayout (10% x, y 9%, 25% x, 30dip)
'Label2.SetLayout (12% x, y 9%, 25% x, 30dip)
and the error was gone.
And when I removed the single quotes, everything was okay again
Strange?
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
B4X:
Label96.SetLayout (55%x, 251%y, 14%x, 35dip)

'I single quotes a few lines in the beginning
'lbl1.SetLayout (25%x 3%y, 55%x, 30dip)
'Label1.SetLayout (2%x, 9%y, 25%x, 30dip)
'Lblontwepbin.SetLayout (10%x, 9%y, 25%x, 30dip)
'Label2.SetLayout (12%x, 9%y, 25%x, 30dip)
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
Upvote 0

parijs

Active Member
Licensed User
Longtime User
Hi Mangojack

It was only labels with text input by designer
see marked pica
28.jpg
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
Upvote 0
Top