I, from a few days my app that should run 24/24 crash with this error in log
I cannot understand origin of crash
B4X:
Message data: {body=nuovo file nodi, title=NODI, mandante=0}
0:1665928320216860%f81d54e4f9fd7ecd
** Activity (main) Pause, UserClosed = false **
main$ResumableSub_Activity_WindowFocusChangedresume (java line: 1359)
java.lang.NullPointerException: Attempt to read from field 'anywheresoftware.b4a.BA com.domos.servo.main.activityBA' on a null object reference
at com.domos.servo.main$ResumableSub_Activity_WindowFocusChanged.resume(main.java:1359)
at com.domos.servo.main._activity_windowfocuschanged(main.java:1288)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at com.domos.servo.main.onWindowFocusChanged(main.java:186)
at com.android.internal.policy.DecorView.onWindowFocusChanged(DecorView.java:2156)
at android.view.View.dispatchWindowFocusChanged(View.java:14657)
at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:1498)
at android.view.ViewRootImpl.handleWindowFocusChanged(ViewRootImpl.java:3455)
at android.view.ViewRootImpl.access$1300(ViewRootImpl.java:205)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:5358)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8107)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
main$ResumableSub_Activity_WindowFocusChangedresume (java line: 1359)
java.lang.NullPointerException: Attempt to read from field 'anywheresoftware.b4a.BA com.domos.servo.main.activityBA' on a null object reference
at com.domos.servo.main$ResumableSub_Activity_WindowFocusChanged.resume(main.java:1359)
at com.domos.servo.main._activity_windowfocuschanged(main.java:1288)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at com.domos.servo.main.onWindowFocusChanged(main.java:186)
at com.android.internal.policy.DecorView.onWindowFocusChanged(DecorView.java:2156)
at android.view.View.dispatchWindowFocusChanged(View.java:14657)
at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:1498)
at android.view.ViewRootImpl.handleWindowFocusChanged(ViewRootImpl.java:3455)
at android.view.ViewRootImpl.access$1300(ViewRootImpl.java:205)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:5358)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8107)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
I cannot understand origin of crash