I'm getting NullPointerException crash reports from the Play Console like this:
java.lang.NullPointerException:
at anywheresoftware.b4a.keywords.Common.LastException (Common.java:810)
at priusfan.info.bthsd10.main._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 (main.java:3918)
at priusfan.info.bthsd10.main._statustimer_tick (main.java:4704)
at java.lang.reflect.Method.invoke (Native Method)
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)
at anywheresoftware.b4a.objects.Timer$TickTack.run (Timer.java:105)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6692)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1358)
since I'm using code obfuscation, the vvvvv... label equals to this sub:
as far as I understand, the exception is caused by LastException itself in the Catch branch
How can I deal with such a case?
java.lang.NullPointerException:
at anywheresoftware.b4a.keywords.Common.LastException (Common.java:810)
at priusfan.info.bthsd10.main._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 (main.java:3918)
at priusfan.info.bthsd10.main._statustimer_tick (main.java:4704)
at java.lang.reflect.Method.invoke (Native Method)
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)
at anywheresoftware.b4a.objects.Timer$TickTack.run (Timer.java:105)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6692)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1358)
since I'm using code obfuscation, the vvvvv... label equals to this sub:
B4X:
Private Sub RefreshStatusLine
Try
'various code
Catch
Private last = LastException As Exception
util.HandleException("Main.RefreshStatusLine", last, util.EXCEPTION_RECOVERABLE)
End Try
End Sub
as far as I understand, the exception is caused by LastException itself in the Catch branch
How can I deal with such a case?