You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
arrow_right
com.vansuita.gaussianblur.GaussianBlur.scaleDown (GaussianBlur.java:101)
The text was updated successfully, but these errors were encountered:
While adding the bitMap into imageView please use the below method :
//Download image frorm url and make it blurry.
GlideApp.with(getContext()).asBitmap().load(imageUrl).into(new BitmapImageViewTarget(ivAvatar) { @OverRide
protected void setResource(Bitmap bitmap) {
if(bitmap!=null) {
GaussianBlur.with(getContext()).size(100).put(resource,ivAvatar);
}}});
it's working fine for me..please check for the bitmap null condition.
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at com.vansuita.gaussianblur.GaussianBlur.scaleDown(GaussianBlur.java:101)
Getting image from API and set as background ...
Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
arrow_right
com.vansuita.gaussianblur.GaussianBlur.scaleDown (GaussianBlur.java:101)
The text was updated successfully, but these errors were encountered: