Android Question [SOLVED]Error when trying to run app on my tablet or phone in debug mode


Active Member
Licensed User
I get :
Installing file.
PackageAdded: package:be.robotronic.robocars
maininitializeProcessGlobals (java line: 1499)
java.lang.RuntimeException: java.lang.NullPointerException
at be.robotronic.robocars.main.initializeProcessGlobals(
at be.robotronic.robocars.main.afterFirstLayout(
at be.robotronic.robocars.main.access$100(
at be.robotronic.robocars.main$
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at be.robotronic.robocars.main.initializeProcessGlobals(
... 12 more
And on my tbalet screen I get = RoboCars has stopped

Can somebody please help me?

Greets John


Active Member
Licensed User
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

    Dim pubGebruiker As gebruiker
    Dim Const POSITION_TOP_LEFT As Int  = 1
    Dim Const POSITION_TOP_RIGHT As Int = 2
    Dim Const POSITION_BOTTOM_LEFT As Int = 3
    Dim Const POSITION_BOTTOM_RIGHT As Int = 4
    Dim Const POSITION_CENTER As Int = 5
    Dim URLstring As String = "http://bla.bla.bla/"
    Dim buttonresult As List
    Dim carchoice As Map
End Sub
I got the error in debug (legacy) but not in debug (rapid).
And also in release mode my apk doesn't start it put RoboCars has stopped


Active Member
Licensed User
curly lines solved (complained because a bal file was not used).
But i the error remains, i cannot run my app under debug (legacy) and release.

Strange, I am e newbie and succesfully made 2 apps for my compagnie.
This one works in debug (rapid) mode but in all other modes I get an error?


Active Member
Licensed User
Ok thanks Erel, I have posted (#3) my code of process globals...
Is there something wrong there?


Active Member
Licensed User
You rock, it was the cars module, didn't see that.
I had the same variable in process_globals and globals....

thanks Erel.

And you have a great product !!!!