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

Attempt to invoke virtual method 'int android.graphics.drawable.Drawable.getIntrinsicWidth()' on a null object reference #141

Open
dev-hussein opened this issue Sep 30, 2018 · 1 comment

Comments

@dev-hussein
Copy link

dev-hussein commented Sep 30, 2018

@igreenwood
This crash when try to rotate image.
at com.isseiaoki.simplecropview.CropImageView.rotateImage(CropImageView.java:1633)
at com.isseiaoki.simplecropview.CropImageView.rotateImage(CropImageView.java:1594)
at com.isseiaoki.simplecropview.CropImageView.calcScale(CropImageView.java:542)

Please check first if getDrawable != null.

Testes devices.

  • Samsung -> SM-N950F -> Android 8.0.0
  • Xiaomi -> Redmi Note 5 -> Android 8.1.0
@tawhidkuet04
Copy link

how to handle this issue ? any suggestion

seyedalireza pushed a commit to seyedalireza/SimpleCropView that referenced this issue May 15, 2021
shtolik pushed a commit to shtolik/SimpleCropView that referenced this issue Jul 9, 2021
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

2 participants