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

Support for vector drawables #45

Open
AKiniyalocts opened this issue Nov 3, 2020 · 0 comments
Open

Support for vector drawables #45

AKiniyalocts opened this issue Nov 3, 2020 · 0 comments

Comments

@AKiniyalocts
Copy link

AKiniyalocts commented Nov 3, 2020

When creating a WatermarkImage with a vector drawable resource, generating the final watermark via:

WatermarkBuilder.create(context, backgroundBitmap) .loadWatermarkImage(waterMarkImage) .getWatermark()

throws a NullPointerException

Here is the full stacktrace:

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
2020-11-03 10:50:39.603 2574-2754/com.buckdown.android W/System.err: at com.watermark.androidwm_light.utils.BitmapUtils.resizeBitmap(BitmapUtils.java:124)
2020-11-03 10:50:39.603 2574-2754/com.buckdown.android W/System.err: at com.watermark.androidwm_light.Watermark.createWatermarkImage(Watermark.java:112)
2020-11-03 10:50:39.603 2574-2754/com.buckdown.android W/System.err: at com.watermark.androidwm_light.Watermark.(Watermark.java:75)

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

1 participant