NPE on map
See original GitHub issueDescribe your problem!
Two user reporting, that the app crashes after updating to 2022.03.09 when trying to open the map. Logfiles from user are requested.
Additionally I do see a significant amount of this (new!) crash on Play Console, which might be related:
java.lang.NullPointerException:
at cgeo.geocaching.maps.RouteTrackUtils.lambda$reloadTrack$19 (RouteTrackUtils.java:238)
at cgeo.geocaching.maps.RouteTrackUtils.lambda$reloadTrack$19$RouteTrackUtils (Unknown Source)
at cgeo.geocaching.maps.-$$Lambda$RouteTrackUtils$6TnbNEkUFq2c0CmC_heN1Jzl0nk.updateRoute (Unknown Source:6)
at cgeo.geocaching.files.GPXTrackOrRouteImporter.lambda$doImport$2 (GPXTrackOrRouteImporter.java:49)
at cgeo.geocaching.files.-$$Lambda$GPXTrackOrRouteImporter$_5oHk4GG8Dp5ykMjvvDuO0uXai8.run (Unknown Source:6)
at io.reactivex.rxjava3.android.schedulers.HandlerScheduler$ScheduledRunnable.run (HandlerScheduler.java:123)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:226)
at android.os.Looper.loop (Looper.java:313)
at android.app.ActivityThread.main (ActivityThread.java:8633)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1135)
How to reproduce?
Unclear
Actual result after these steps?
Crash
Expected result after these steps?
Normal operation
Reproducible
Unclear
c:geo Version
2022.03.09
System information
Android 11+12, Several devices
Additional Information
Support ticket 129308
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (11 by maintainers)
Top Results From Across the Web
Java HashMap get method null pointer exception
myMap which is a HashMap returns null when get() is invoked because a certain key is not present in the map. null is...
Read more >Null Pointer exception on a Map get()
If zero rows would be returned, there's no entry in the map for the record, so you need to check for that first:...
Read more >Null pointer exception - java help on CodeGym
I'm confused as to how to work around the null pointer exception with this object. map.put("Baby", .. java programming help on java course ......
Read more >Null pointer exception in HashMap - Learn Java and WCS
Don't forget to set the hash map before using it. Below code will through NullPointerException. import java.
Read more >null pointer exception for a map - Salesforce Developers
I am getting a null pointer exception in below code. how can i put a check on below code to check if it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep…will do it.
@alan666notb
Ah, IC. Was already dreaming of an AutoUpdating Nightly … 😉