What this error mean ?
Line 192 is the latest line "End Sub" of
Private Sub JobDone (Job As HttpJob) in the class that downloads by OKHttputils2 built-in lib v.2.20 (not a class). B4A v.6.
Job is successful, but error in the end of the sub. And error only in DEBUG mode at first start, if to restart "running previous successful shell app" - NO ERROR ! Release looks OK, but sometimes the black screen and app is closed.
Job result is
where m is Map, Client is the activity to be started.
Line 192 is the latest line "End Sub" of
Private Sub JobDone (Job As HttpJob) in the class that downloads by OKHttputils2 built-in lib v.2.20 (not a class). B4A v.6.
Job is successful, but error in the end of the sub. And error only in DEBUG mode at first start, if to restart "running previous successful shell app" - NO ERROR ! Release looks OK, but sometimes the black screen and app is closed.
Job result is
B4X:
StartActivity(Client)
CallSub2(Client, "Refresh_tab", m)
where m is Map, Client is the activity to be started.
B4X:
** Service (httputils2service) Start **
job_received=GetToken
Received Token for Session = 45f5304463dada979933ca3506d80f79033839cf
Error occurred on line: 192 (clsBallovnet)
java.lang.NullPointerException: null receiver
at java.lang.reflect.Field.get(Native Method)
at java.lang.reflect.Field.get(Field.java:279)
at anywheresoftware.b4a.shell.Shell.getStateAfterUserSubHelper(Shell.java:513)
at anywheresoftware.b4a.shell.Shell.getStateAfterUserSub(Shell.java:496)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:403)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA$2.run(BA.java:328)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5552)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
** Activity (main) Pause, UserClosed = true **
Last edited: