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

Using vector asset as overlay image #7

Open
sherantonettego opened this issue Jul 4, 2020 · 1 comment
Open

Using vector asset as overlay image #7

sherantonettego opened this issue Jul 4, 2020 · 1 comment

Comments

@sherantonettego
Copy link

Hi @AnupKumarPanwar ,

Should there be any issues using vector assets as the overlay image? I seem to be getting runtime errors because of it.

Thanks,
Sher

@Shubhamsdr3
Copy link

Shubhamsdr3 commented Jan 30, 2021

Yeah..getting error while using vector drawable for overlay image:

Caused by: 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:800)
at com.anupkumarpanwar.scratchview.ScratchView.init(ScratchView.java:169)
at com.anupkumarpanwar.scratchview.ScratchView.(ScratchView.java:119)
... 53 more

added the fix here: #8

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