Android Question Crash Report - java.lang.NullPointerException

D

Deleted member 103

Guest
Hi,

I got a crash report in my Google Play Developer console.
What is the error?
java.lang.NullPointerException
at fg.cronomillemiglia_pro.main$ResumeMessage.run(main.java:254)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4898)
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:1006)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
at dalvik.system.NativeStart.main(Native Method)
 
D

Deleted member 103

Guest
Unfortunately, that is all.
Here again a screenshot.
Google-Report.jpg
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is the relevant code:
B4X:
if (mostCurrent == null || mostCurrent != activity.get())
   return;
processBA.setActivityPaused(false);
BA.LogInfo("** Activity (main) Resume **");
processBA.raiseEvent(mostCurrent._activity, "activity_resume", (Object[])null); <--- line 254
This error can only happen if mostCurrent is null. However there is a check for this at the beginning. Seems like something wrong happened when the process has started.
 
Upvote 0
Top