java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Error in onDraw method in android
    via Stack Overflow by Jaymesh
    ,
    • 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:1281) at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:620) at com.ozuf.booker.fragments.BookFragment$1.onChildDraw(BookFragment.java:149) at android.support.v7.widget.helper.ItemTouchHelper$Callback.onDraw(ItemTouchHelper.java:1956) at android.support.v7.widget.helper.ItemTouchHelper$Callback.access$1400(ItemTouchHelper.java:1356) at android.support.v7.widget.helper.ItemTouchHelper.onDraw(ItemTouchHelper.java:542) at android.support.v7.widget.RecyclerView.onDraw(RecyclerView.java:3373) at android.view.View.draw(View.java:15635) at android.support.v7.widget.RecyclerView.draw(RecyclerView.java:3308) at android.view.View.updateDisplayListIfDirty(View.java:14568) at android.view.View.getDisplayList(View.java:14590) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3588) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3567) at android.view.View.updateDisplayListIfDirty(View.java:14528) at android.view.View.getDisplayList(View.java:14590) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3588) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3567) at android.view.View.updateDisplayListIfDirty(View.java:14528) at android.view.View.getDisplayList(View.java:14590) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3588) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3567) at android.view.View.updateDisplayListIfDirty(View.java:14528) at android.view.View.getDisplayList(View.java:14590) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3588) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3567) at android.view.View.updateDisplayListIfDirty(View.java:14528) at android.view.View.getDisplayList(View.java:14590) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3588) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3567) at android.view.View.updateDisplayListIfDirty(View.java:14528) at android.view.View.getDisplayList(View.java:14590) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3588) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3567) at android.view.View.updateDisplayListIfDirty(View.java:14528) at android.view.View.getDisplayList(View.java:14590) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3588) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3567) at android.view.View.updateDisplayListIfDirty(View.java:14528) at android.view.View.getDisplayList(View.java:14590) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3588) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3567) at android.view.View.updateDisplayListIfDirty(View.java:14528) at android.view.View.getDisplayList(View.java:14590) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3588) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3567) at android.view.View.updateDisplayListIfDirty(View.java:14528) at android.view.View.getDisplayList(View.java:14590) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:273) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:279) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:318) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2575) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2385) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2012) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1073) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5988) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,