java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' 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 GitHub by EMIN3M1986
, 10 months ago
Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
via GitHub by sebpouteau
, 4 months ago
Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
via GitHub by MrThiago
, 8 months ago
Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
via GitHub by MrThiago
, 1 year ago
Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
via GitHub by Lineflyer
, 8 months ago
Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
via GitHub by Massedil
, 3 months ago
Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1269)
at rm.com.audiowave.AudioWaveView.onDraw(AudioWaveView.kt:132)
at android.view.View.draw(View.java:16302)
at android.view.View.updateDisplayListIfDirty(View.java:15284)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.draw(View.java:16305)
at android.view.View.updateDisplayListIfDirty(View.java:15284)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.draw(View.java:16305)
at android.view.View.updateDisplayListIfDirty(View.java:15284)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.draw(View.java:16305)
at android.view.View.updateDisplayListIfDirty(View.java:15284)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.draw(View.java:16305)
at android.view.View.updateDisplayListIfDirty(View.java:15284)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)

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, 1 year ago

Write tip

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