java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference


Solutions on the web

Solution icon of github
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

Solution icon of googlegroups
via Google Groups by Muhammad Babar, 3 months ago
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

Solution icon of github
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

Solution icon of googlegroups
via Google Groups by M. Dietrich, 3 months ago
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

Solution icon of github
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

Solution icon of github
via GitHub by wish7code
, 1 year ago
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object

Stack trace

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
	at org.mapsforge.map.android.graphics.AndroidBitmap.getWidth(AndroidBitmap.java:114)
	at org.mapsforge.map.layer.overlay.Marker.draw(Marker.java:72)
	at org.mapsforge.map.layer.LayerManager.doWork(LayerManager.java:90)
	at org.mapsforge.map.util.PausableThread.run(PausableThread.java:140)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

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