I have an app I have been working on for a few weeks, it has been working fine except that the Table Views don't seem to allow scrolling when there are more rows than are visible. I thought that perhaps it was due to some changes I had made to the Table code so I could set the row height, so I copied my version to a backup, removed the Module, and added the original back in. But now I am getting errors when running the app.
The first one is this:
The strange thing, is that if I step thru the code using the debugger, it doesn't occur.
By the way, I tried putting my changed code back, but the error continues to occur.
What should I be looking at here?
The first one is this:
Error occurred on line: 0 (table)
java.lang.NullPointerException
at b4a.example.schedule._tbltime2_cellclick(schedule.java:1113)
at b4a.example.schedule._tbltime1_cellclick(schedule.java:1993)
at b4a.example.schedule._tblschedule_cellclick(schedule.java:808)
at b4a.example.schedule._activity_create(schedule.java:403)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at b4a.example.schedule.afterFirstLayout(schedule.java:98)
at b4a.example.schedule.access$100(schedule.java:16)
at b4a.example.schedule$WaitForLayout.run(schedule.java:76)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5414)
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:1187)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
at dalvik.system.NativeStart.main(Native Method)
** Activity (schedule) Resume **
The strange thing, is that if I step thru the code using the debugger, it doesn't occur.
By the way, I tried putting my changed code back, but the error continues to occur.
What should I be looking at here?