Android Question https://www.b4x.com/android/forum/threads/%F0%9F%92%A1-part-2-examples-creating-long-lists-using-xcustomlistview-with-lazy-loading-newer-developers.11

beelze69

Active Member
Licensed User
Longtime User
Hi ,

This is regarding Peter Simpson's post of the Airports Module example pertaining to Lazy Loading:
The link is below:


The program is great !
However, when I press the 'Back' button on the Smartphone when the program is running in the 'Debug' Mode, I am getting the following error:

Unexpected event (missing RaiseSynchronousEvents): txtsearchfilter_textchanged
Check the unfiltered logs for the full stack trace.

Error occurred on line: 79 (Main)
java.lang.NullPointerException: Attempt to read from field 'anywheresoftware.b4a.BA com.simplysoftware.airport.main.activityBA' on a null object reference
at com.simplysoftware.airport.main._txtsearchfilter_textchanged(main.java:412)
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:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at anywheresoftware.b4a.shell.Shell$2.run(Shell.java:321)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6823)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)


Question: 1) Has anybody encountered a similar problem (or is it only on my system)?
2) Can we get a solution for the same?

Thanks.
 
Top