Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When clearing the image using .setImageBitmap(null) a nullpointer exception occurs #59

Open
timkoers opened this issue Apr 30, 2016 · 3 comments

Comments

@timkoers
Copy link

When clearing the current image using setImageBitmap(null) a nullpointer exception occurs:

java.lang.NullPointerException:
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:591)
at com.pkmmte.view.CircularImageView.refreshBitmapShader(CircularImageView.java:341)
at com.pkmmte.view.CircularImageView.invalidate(CircularImageView.java:262)
at android.widget.ImageView.setImageDrawable(ImageView.java:456)
at android.widget.ImageView.setImageBitmap(ImageView.java:548)

This should not happen, the default ImageView doesn't do this.

@bdipak
Copy link

bdipak commented Dec 7, 2016

+1

Is this fixed ??

@rishabhsri20
Copy link

same issue here..

@shinayser
Copy link

Is this project abandoned? This issue persists (June 17)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants