B4J Question (solver) Problems when using LatLng library in Non-UI application

jose luis gudino

Active Member
Licensed User
Longtime User
Hi I am using the LatLng library in a Non-UI application but I get this error
Thanks in advance.

B4X:
Dim newposition As LatLng
newposition.Initialize("3.4975324441311146","-76.31058145495878")

B4X:
Error occurred on line: 370
java.lang.NullPointerException
    at com.lynden.gmapsfx.javascript.JavascriptRuntime.execute(JavascriptRuntime.java:63)
    at com.lynden.gmapsfx.javascript.JavascriptObject.<init>(JavascriptObject.java:76)
    at com.lynden.gmapsfx.javascript.object.LatLong.<init>(LatLong.java:36)
    at anywheresoftware.b4j.googlemaps.GoogleMapWrapper$LatLngWrapper.Initialize(GoogleMapWrapper.java:180)
    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.runVoidMethod(Shell.java:676)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:240)
    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.raiseEvent(BA.java:78)
    at b4j.example.main.main(main.java:29)
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top