I have an app that was working for quite some time now. I have a simple activity that retrieves JSON and stuffs it into a B4XTable.
I am running thru B4A-Bridge to try and troubleshoot this.
On my SM-G998U all works as expected regardless of how the project is compiled.
On a SM-A125U running in Debug mode everything works as expected but in Release mode when I open this activity it crashes with the following:
Logger connected to: samsung SM-A125U
b4xfloattextfield_settext (java line: 536)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String anywheresoftware.b4a.objects.B4XViewWrapper.getText()' on a null object reference
at coldtech.ctx.b4xfloattextfield._settext(b4xfloattextfield.java:536)
at coldtech.ctx.listhandler._onload(listhandler.java:1859)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1178)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Perhaps someone can offer some ideas?
I am running thru B4A-Bridge to try and troubleshoot this.
On my SM-G998U all works as expected regardless of how the project is compiled.
On a SM-A125U running in Debug mode everything works as expected but in Release mode when I open this activity it crashes with the following:
Logger connected to: samsung SM-A125U
b4xfloattextfield_settext (java line: 536)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String anywheresoftware.b4a.objects.B4XViewWrapper.getText()' on a null object reference
at coldtech.ctx.b4xfloattextfield._settext(b4xfloattextfield.java:536)
at coldtech.ctx.listhandler._onload(listhandler.java:1859)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1178)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Perhaps someone can offer some ideas?