-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
NullPointerException in LruMemoryCache #233
Comments
Thanks for bug. I'll investigate it.
|
My configuration is simple:
where getDisplayImageConfig is listed above |
Mystery. Can't imagine how it can happens. Don't you really use any pre-processor? |
Sorry, you're right. In some cases, we use preprocessor: public class MaskClipProcessor implements BitmapProcessor {
public static final int DEFAULT_MASK = R.drawable.user_mask_album;
private final Bitmap mMask;
private static HashMap<Integer, Bitmap> cachedMaskBitmaps = new HashMap<Integer, Bitmap>();
public MaskClipProcessor(int mask) {
if (cachedMaskBitmaps.containsKey(mask)) {
mMask = cachedMaskBitmaps.get(mask);
} else {
mMask = BitmapFactory.decodeResource(App.getContext().getResources(), mask);
cachedMaskBitmaps.put(mask, mMask);
}
}
@Override
public Bitmap process(Bitmap bitmap) {
return Utils.getRoundedCornerBitmapByMask(bitmap, mMask);
}
} |
I'll fix it, NPE won't be thrown, UIL will display |
Hi! We have some rare (1 per 2000 users) errors in logs with UIL 1.8.3.
All users have Android 2.X
our configuration:
The text was updated successfully, but these errors were encountered: