Android Question java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

PierPaduan

Active Member
Licensed User
Hi all,
I have a crash report from Google Developer console.
It's happened on android version: 4.2, device: Y511-U10 (HWY511-U).
The text of the error is the following.
I would like to know if this can be a potential problem or not.
Please help me, thanks a Lot.
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at it.ritmo.setandgo.machines.initializeProcessGlobals(machines.java:345)
at it.ritmo.setandgo.machines.afterFirstLayout(machines.java:96)
at it.ritmo.setandgo.machines.access$100(machines.java:17)
at it.ritmo.setandgo.machines$WaitForLayout.run(machines.java:78)
at android.os.Handler.handleCallback(Handler.java:800)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5392)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at it.ritmo.setandgo.machines.initializeProcessGlobals(machines.java:343)
... 12 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at it.ritmo.setandgo.main.initializeProcessGlobals(main.java:2304)
... 15 more
Caused by: java.lang.NullPointerException
at anywheresoftware.b4a.BA.<init>(BA.java:106)
at ADR.stringdemo.stringfunctions.innerInitialize(stringfunctions.java:12)
at ADR.stringdemo.stringfunctions._initialize(stringfunctions.java:227)
at it.ritmo.setandgo.main._process_globals(main.java:2395)
at it.ritmo.setandgo.main.initializeProcessGlobals(main.java:2293)
... 15 more
 

PierPaduan

Active Member
Licensed User
What is ADR.stringdemo.stringfunctions?
Looks like you initialized it in process globals.
Hi, and thanks for the fast reply.
Sorry but I really don't know what "ADR.stringdemo.stringfunctions" is. In my app I use the Library "StringFunctions" vers. 1.04 downloaded from here: http://www.b4x.com/android/forum/threads/string-functions.10365/#content

I use this Library in Activity Main:
B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    '*******************  
    Dim sf As StringFunctions
    sf.Initialize
    '*******************
    'mappa delle stringhe per le varie lingue
    Dim MappaStringhe As Map    ' definisco la mappa che conterrà le stringhe
And in Activity Summary:
B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    '*******************
    Dim sf As StringFunctions
       sf.Initialize
    '*******************
Is this uncorrect?
 
Top