Android Question B4XTable error

JonnyCav

Member
Erel,
This was working for me but now gives me this error:

Error occurred on line: 121 (B4XTable)


B4XTable Tutorial



Full error from the log:

** Activity (main) Create (first time) **
** Activity (main) Resume **
** Activity (main) Resume **
Error occurred on line: 121 (B4XTable)
java.lang.NullPointerException: Attempt to invoke virtual method 'void anywheresoftware.b4a.objects.B4XViewWrapper.setVisible(boolean)' on a null object reference
at b4a.example.b4xtable$ResumableSub_DesignerCreateView.resume(b4xtable.java:2372)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resumeAsUserSub(DebugResumableSub.java:48)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resume(DebugResumableSub.java:43)
at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1748)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
 

JonnyCav

Member
Thank you for that Erel.

Which exposes a huge problem for you when a 'newbie' like me comes on board: There are so many posts with code that YOU now consider defunct and yet, when the current official documentation doesn't deal with all aspects of the 'new' B4X 'standards'.

There is so many examples of code on this site that, therefore, lead people like me down the garden path ultimately to discover it's now a cul-de-sac. It's quite annoying and I'm certain I'm not alone feeling this. Of course, it's not your fault.

I will investigate Pages.
 
Upvote 0
Top