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

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

Solutions on the web

via Google Groups by M. Dietrich, 6 months ago
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
via GitHub by mendinskis
, 1 year ago
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
via Google Groups by Muhammad Babar, 6 months ago
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
via GitHub by virus-warnning
, 2 years ago
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
via GitHub by wish7code
, 1 year ago
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object
via GitHub by dougszumski
, 2 years ago
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
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:113)
at org.mapsforge.core.mapelements.SymbolContainer.(SymbolContainer.java:42)
at org.mapsforge.core.mapelements.SymbolContainer.(SymbolContainer.java:33)
at org.mapsforge.map.layer.renderer.DatabaseRenderer.renderPointOfInterestSymbol(DatabaseRenderer.java:373)
at org.mapsforge.map.rendertheme.renderinstruction.Symbol.renderNode(Symbol.java:83)
at org.mapsforge.map.rendertheme.rule.Rule.matchNode(Rule.java:79)
at org.mapsforge.map.rendertheme.rule.RenderTheme.matchNode(RenderTheme.java:154)
at org.mapsforge.map.layer.renderer.DatabaseRenderer.renderPointOfInterest(DatabaseRenderer.java:427)
at org.mapsforge.map.layer.renderer.DatabaseRenderer.processReadMapData(DatabaseRenderer.java:413)
at org.mapsforge.map.layer.renderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:184)
at org.mapsforge.map.layer.renderer.MapWorker.renderTile(MapWorker.java:88)
at org.mapsforge.map.layer.renderer.MapWorker.doWork(MapWorker.java:65)
at org.mapsforge.map.util.PausableThread.run(PausableThread.java:140)

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

Write tip

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