Android Question NullPointerException

PABLO2013

Well-Known Member
Licensed User
Longtime User
regards
could help me solve as I have an error and I can not find it
i send code for my project, as could solve "NullPointerException"
thank you advanced.
 

Attachments

  • map.zip
    11.7 KB · Views: 153

DonManfred

Expert
Licensed User
Longtime User
And why creating a vote for this question? should i vote for "help" or for "some"? :D
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
tks, NJdude
i run DEBUG (legacy) mode but the problem persists, it could not be...
MyLocationOverlay1.Initialize(MapView1, "MyLocationOverlay1") ' her is may problem !!!!!
SimpleLocationOverlay1.Initialize(MapView1)
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
tks, NJdude this is what the debug indicates...
java.lang.NullPointerException
at org.osmdroid.views.overlay.MyLocationOverlay.<init>(MyLocationOverlay.java:155)
at uk.co.martinpearman.b4a.osmdroid.views.overlays.MyMyLocationOverlay.<init>(MyMyLocationOverlay.java:24)
at uk.co.martinpearman.b4a.osmdroid.views.overlays.wrappers.MyMyLocationOverlayWrapper.Initialize(MyMyLocationOverlayWrapper.java:23)
at b4a.example.main._activity_create(main.java:454)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at b4a.example.main.afterFirstLayout(main.java:98)
at b4a.example.main.access$100(main.java:16)
at b4a.example.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4830)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
at dalvik.system.NativeStart.main(Native Method)
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
yes, the program stops at:
this is what I do not understand how to solve


anyway thanks for your patience
 

Attachments

  • error.PNG
    error.PNG
    5.2 KB · Views: 189
Upvote 0
Top