On Android, when I add my own markers, the map often doesn’t load—I’m not sure what’s going on. Occasionally, this message appears: Attempt to invoke virtual method 'org.osmdroid.views.MapViewRepository org.osmdroid.views.MapView.getRepository() on a null object reference.’
In my case, the app is different in that it renders these markers dynamically from a collection after it’s loaded—what’s strange is that it works sometimes, in most cases there is no error even - just empty screen.
On Android, when I add my own markers, the map often doesn’t load—I’m not sure what’s going on. Occasionally, this message appears:
Attempt to invoke virtual method 'org.osmdroid.views.MapViewRepository org.osmdroid.views.MapView.getRepository()
on a null object reference.’ In my case, the app is different in that it renders these markers dynamically from a collection after it’s loaded—what’s strange is that it works sometimes, in most cases there is no error even - just empty screen.