Android Question Understandning errors

Nizze

Active Member
Licensed User
Longtime User
Hi

Today i got a problem that i have not seen before.

But how can i see whats the problem ?
ba.java line 250 , i dont see that i have a file named ba.java

B4X:
FATAL EXCEPTION: com.main.testing, PID: 4408
java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Exception anywheresoftware.b4a.BA.getLastException()' on a null object reference
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:250)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at com.main.testing.main.afterFirstLayout(main.java:124)
    at com.main.testing.main.access$000(main.java:30)
    at com.main.testing.main$WaitForLayout.run(main.java:96)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:223)
    at android.app.ActivityThread.main(ActivityThread.java:7703)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:997)

Br
Nizze
 

DonManfred

Expert
Licensed User
Longtime User
But how can i see whats the problem ?
The problem is that you did not post your code which you are using? How could we help without it?

Guess you are logging LastException somewhere but there is no Exception set...
 
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
The problem is that you did not post your code which you are using? How could we help without it?

Guess you are logging LastException somewhere but there is no Exception set...
Hi Don .

But i have a project with many pages and i dont know wich one i should look in .
So i thought that this line

B4X:
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:250)

could be found in some file somewhere .

Br
Nizze
 
Upvote 0
Top