java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.osmdroid.views.overlay.Overlay.isEnabled()' on a null object reference 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.overlay.DefaultOverlayManager.onDraw(DefaultOverlayManager.java:111) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.bonuspack.overlays.FolderOverlay.draw(FolderOverlay.java:68) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.overlay.DefaultOverlayManager.onDraw(DefaultOverlayManager.java:118) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.bonuspack.overlays.FolderOverlay.draw(FolderOverlay.java:68) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.overlay.DefaultOverlayManager.onDraw(DefaultOverlayManager.java:118) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.MapView.dispatchDraw(MapView.java:993) 09-02 12:47:41.267: W/System.err(27156): at android.view.View.updateDisplayListIfDirty(View.java:15175) 09-02 12:47:41.267: W/System.err(27156): at android.view.View.draw(View.java:15954) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.drawChild(ViewGroup.java:3609) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.updateDisplayListIfDirty(View.java:15175) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:15954) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.drawChild(ViewGroup.java:3609) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:16187) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.updateDisplayListIfDirty(View.java:15180) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:15954) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.drawChild(ViewGroup.java:3609) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.updateDisplayListIfDirty(View.java:15175) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:15954) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.drawChild(ViewGroup.java:3609) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:16187)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by juamor86
, 1 year ago
Attempt to invoke virtual method 'boolean org.osmdroid.views.overlay.Overlay.isEnabled()' on a null object reference 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.overlay.DefaultOverlayManager.onDraw(DefaultOverlayManager.java:111
via GitHub by juamor86
, 1 year ago
Attempt to invoke virtual method 'boolean org.osmdroid.views.overlay.Overlay.isEnabled()' on a null object reference 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.overlay.DefaultOverlayManager.onDraw(DefaultOverlayManager.java:111
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.osmdroid.views.overlay.Overlay.isEnabled()' on a null object reference 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.overlay.DefaultOverlayManager.onDraw(DefaultOverlayManager.java:111) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.bonuspack.overlays.FolderOverlay.draw(FolderOverlay.java:68) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.overlay.DefaultOverlayManager.onDraw(DefaultOverlayManager.java:118) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.bonuspack.overlays.FolderOverlay.draw(FolderOverlay.java:68) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.overlay.DefaultOverlayManager.onDraw(DefaultOverlayManager.java:118) 09-02 12:47:41.267: W/System.err(27156): at org.osmdroid.views.MapView.dispatchDraw(MapView.java:993) 09-02 12:47:41.267: W/System.err(27156): at android.view.View.updateDisplayListIfDirty(View.java:15175) 09-02 12:47:41.267: W/System.err(27156): at android.view.View.draw(View.java:15954) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.drawChild(ViewGroup.java:3609) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.updateDisplayListIfDirty(View.java:15175) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:15954) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.drawChild(ViewGroup.java:3609) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:16187) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.updateDisplayListIfDirty(View.java:15180) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:15954) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.drawChild(ViewGroup.java:3609) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.updateDisplayListIfDirty(View.java:15175) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:15954) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.drawChild(ViewGroup.java:3609) 09-02 12:47:41.268: W/System.err(27156): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) 09-02 12:47:41.268: W/System.err(27156): at android.view.View.draw(View.java:16187)
at android.view.View.updateDisplayListIfDirty(View.java:15180)
at android.view.View.draw(View.java:15954)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16187)
at android.view.View.updateDisplayListIfDirty(View.java:15180)
at android.view.View.draw(View.java:15954)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16187)
at android.view.View.updateDisplayListIfDirty(View.java:15180)
at android.view.View.draw(View.java:15954)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16187)
at android.view.View.updateDisplayListIfDirty(View.java:15180)
at android.view.View.draw(View.java:15954)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.