java.lang.NullPointerException

Attempt to invoke virtual method 'android.graphics.Bitmap cn.finalteam.galleryfinal.widget.crop.RotateBitmap.getBitmap()' on a null object reference

Solutions on the web21091

  • via GitHub by XiaoXunLu
    , 1 year ago
    Attempt to invoke virtual method 'android.graphics.Bitmap cn.finalteam.galleryfinal.widget.crop.RotateBitmap.getBitmap()' on a null object reference
  • Attempt to invoke virtual method 'android.graphics.Bitmap android.graphics.Bitmap.copy(android.graphics.Bitmap$Config, boolean)' on a null object reference
  • via Stack Overflow by Mobo
    , 2 months ago
    Attempt to invoke virtual method 'android.graphics.Bitmap android.graphics.Bitmap.copy(android.graphics.Bitmap$Config, boolean)' on a null object reference
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Bitmap cn.finalteam.galleryfinal.widget.crop.RotateBitmap.getBitmap()' on a null object reference at cn.finalteam.galleryfinal.widget.crop.ImageViewTouchBase.setImageRotateBitmapResetBase(ImageViewTouchBase.java:180) at cn.finalteam.galleryfinal.widget.crop.CropImageView.setImageRotateBitmapResetBase(CropImageView.java:27) at cn.finalteam.galleryfinal.widget.crop.ImageViewTouchBase$1.run(ImageViewTouchBase.java:174) at cn.finalteam.galleryfinal.widget.crop.ImageViewTouchBase.onLayout(ImageViewTouchBase.java:106) at cn.finalteam.galleryfinal.widget.crop.CropImageView.onLayout(CropImageView.java:52)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.