B4J Question [SOLVED] Suddenly Google Map error - java.lang.NullPointerException

makis_best

Well-Known Member
Licensed User
Longtime User
Hi

I had one application using Google maps since yesterday was working fine.
Today when I try to debug it again without doing any change on code
I get the error saying like that.
Any help what it means?

Waiting for debugger to connect...
Program started.
Alert: Hide directions called
Alert: loadMapLibrary done
Error occurred on line: 209
java.lang.NullPointerException
at anywheresoftware.b4j.googlemaps.GoogleMapWrapper.AddMarker2(GoogleMapWrapper.java:349)
at anywheresoftware.b4j.googlemaps.GoogleMapWrapper.AddMarker(GoogleMapWrapper.java:329)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:632)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
at anywheresoftware.b4a.BA$1.run(BA.java:216)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:186)
at java.lang.Thread.run(Thread.java:748)
 

makis_best

Well-Known Member
Licensed User
Longtime User
Ok...

I find the problem....
I just update jGoogleMaps library to 1.82 and everything working fine now.
 
Upvote 0
Top