Closed dennisguse closed 2 years ago
Got this while recording and opening OSMDashboard. No clue why:
java.lang.NullPointerException: Attempt to invoke virtual method 'long de.dennisguse.opentracks.content.data.Track$Id.getId()' on a null object reference
at de.dennisguse.opentracks.content.provider.ContentProviderUtils.formatIdListForUri(ContentProviderUtils.java:804)
at de.dennisguse.opentracks.util.IntentDashboardUtils.startDashboard(IntentDashboardUtils.java:65)
at de.dennisguse.opentracks.TrackRecordingActivity.onOptionsItemSelected(TrackRecordingActivity.java:270)
Is not reported anymore via Google Play crash reporting, so it seems that we fixed it (somehow) in the recent weeks :partying_face:
I don't know how to reproduce those NPEs, but they seem related. All started occuring with v3.21.0
Best guess: some kind of race condition in the activity lifecycle (i.e., transition to another activity).