PABLO2013 Well-Known Member Licensed User Longtime User Apr 19, 2014 #1 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 map.zip 11.7 KB · Views: 276
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.
NJDude Expert Licensed User Longtime User Apr 19, 2014 #2 Run your code in DEBUG (legacy) mode, it will show the offending line. Upvote 0
DonManfred Expert Licensed User Longtime User Apr 19, 2014 #3 And why creating a vote for this question? should i vote for "help" or for "some"? Upvote 0
PABLO2013 Well-Known Member Licensed User Longtime User Apr 19, 2014 #4 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
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)
PABLO2013 Well-Known Member Licensed User Longtime User Apr 19, 2014 #5 tks,Manfred it may be that my mouse was wrong... Upvote 0
NJDude Expert Licensed User Longtime User Apr 19, 2014 #6 Running in debug mode is not going to solve anything, it will just point you to the line where the error occurs, check your initializations etc. Upvote 0
Running in debug mode is not going to solve anything, it will just point you to the line where the error occurs, check your initializations etc.
PABLO2013 Well-Known Member Licensed User Longtime User Apr 19, 2014 #7 tks, NJdude DEBUG (legacy) mode, that's supposed to see in this? tks Upvote 0
NJDude Expert Licensed User Longtime User Apr 19, 2014 #8 I just told you, the app will stop at the line where the error occurs, that's all, you will have to check your code and see what are you missing or doing wrong. Upvote 0
I just told you, the app will stop at the line where the error occurs, that's all, you will have to check your code and see what are you missing or doing wrong.
PABLO2013 Well-Known Member Licensed User Longtime User Apr 19, 2014 #9 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
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)
NJDude Expert Licensed User Longtime User Apr 19, 2014 #10 That's the LOG, on the IDE you have to select DEBUG(legacy) like THIS and then recompile. Upvote 0
PABLO2013 Well-Known Member Licensed User Longtime User Apr 19, 2014 #11 yes, the program stops at: this is what I do not understand how to solve anyway thanks for your patience Attachments error.PNG 5.2 KB · Views: 384 Upvote 0
yes, the program stops at: this is what I do not understand how to solve anyway thanks for your patience