2.20 beta: Strange NullPointerException

corwin42

Expert
Licensed User
Longtime User
I randomly get this NullpointerException since I use 2.20 Beta:

B4X:
java.lang.NullPointerException
   at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:102)
   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:4745)
   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:789)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
   at dalvik.system.NativeStart.main(Native Method)

I don't know if this is really related to the beta or if I have broken something in my code. Nevertheless I have no idea where this Exception occurs since in the call stack there is no name of a sub from my code.
 

corwin42

Expert
Licensed User
Longtime User
Yes, it is declared as process global variable. Timer is initialized to the next full hour. I will check my code again if I see anything strange.

Gesendet von meinem Galaxy Nexus mit Tapatalk 2
 
Upvote 0

corwin42

Expert
Licensed User
Longtime User
Hmm, changed some things now.

The Timers were NOT dimmed in process_globals but only in globals. Changed that now and another thing was that one timer was not disabled in activity_pause. Added this, too. Now I'm checking if it is better now.

Strange thing is that this seemed to work in B4A 2.02 but not in the current beta.
 
Upvote 0
Top