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

com.cooltechworks.views.ScratchImageView.getImageBounds (ScratchImageView.java:397) #16

Open
varundwarkani opened this issue Jan 15, 2019 · 4 comments

Comments

@varundwarkani
Copy link

I am getting repeated crash in this.

@varundwarkani
Copy link
Author

Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'android.graphics.Rect android.graphics.drawable.Drawable.getBounds()' on a null object reference
com.cooltechworks.views.ScratchImageView.getImageBounds

@sharish
Copy link
Owner

sharish commented Feb 18, 2019

@varundwarkani : Can you get your sample code or fork the repo and send a snapshot with step to reproduce

@Kida007
Copy link

Kida007 commented Dec 27, 2019

yeh the problem is real .

Fix :
I used mDrawable instead of getDrawable() in getImageBounds function . Dont know if the solution has any side-effects, but works just fine for me.

@AkshatDeveloper06
Copy link

Can i get .jar file for this scratch view

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