Hey Guys. I declare a Class in another Class and somehow i get an error with that code:
Is there maybe a bypass?
B4X:
** Service (starter) Create **
Initialize Service_Starter
** Service (starter) Start **
Start Service_Starter
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 0 (TextSizeHandler_Class)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.keywords.Common.CallSubDebug(Common.java:852)
at com.hoehenmesser.PlainTap.DEV.refreshservice._refreshtimer_tick(refreshservice.java:161)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:697)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:336)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:105)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:336)
at anywheresoftware.b4a.debug.Debug.CallSubNew(Debug.java:282)
... 17 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:318)
... 18 more
Caused by: java.lang.NullPointerException: Attempt to read from field 'int android.view.ViewGroup$LayoutParams.width' on a null object reference
at anywheresoftware.b4a.objects.ViewWrapper.getWidth(ViewWrapper.java:140)
at com.hoehenmesser.PlainTap.DEV.textsizehandler_class._checksize(textsizehandler_class.java:166)
at com.hoehenmesser.PlainTap.DEV.textsizehandler_class._returntrueiftextsizeistoobigforlabel(textsizehandler_class.java:204)
at com.hoehenmesser.PlainTap.DEV.label_circlevalue._settext(label_circlevalue.java:91)
at com.hoehenmesser.PlainTap.DEV.main._circlevalues_update(main.java:1643)
... 20 more
Is there maybe a bypass?