Android Question java.lang.RuntimeException

ilan

Expert
Licensed User
Longtime User
hi,

what could be the reason for that crash?

thanx, ilan

java.lang.RuntimeException:

at anywheresoftware.b4a.AbsObjectWrapper.getObject (AbsObjectWrapper.java:50)

at anywheresoftware.b4a.objects.collections.Map.GetDefault (Map.java:69)

at www.sagital.speakeng.main._loadcat (main.java:1414)

at www.sagital.speakeng.main$ResumableSub_menubtn_Click.resume (main.java:1943)

at www.sagital.speakeng.main._menubtn_click (main.java:1855)

at java.lang.reflect.Method.invoke (Native Method)

at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)

at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:170)

at anywheresoftware.b4a.BA.raiseEvent (BA.java:166)

at anywheresoftware.b4a.objects.ViewWrapper$1.onClick (ViewWrapper.java:80)

at android.view.View.performClick (View.java:5697)

at android.widget.TextView.performClick (TextView.java:10814)

at android.view.View$PerformClick.run (View.java:22526)

at android.os.Handler.handleCallback (Handler.java:739)

at android.os.Handler.dispatchMessage (Handler.java:95)

at android.os.Looper.loop (Looper.java:158)

at android.app.ActivityThread.main (ActivityThread.java:7229)

at java.lang.reflect.Method.invoke (Native Method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)

at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
As a blind guess I would say the fault is occurring in the menubtn_click event routine when you try to access a map. It's there a map
collection in this routine?
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
ok i found the problem. when the user clicked on the back key he closed the app. Returning back to the app and using again the map caused that error because it was no more initialized. moving the map to Process_Globals solved the problem. :)
 
Upvote 0
Top