Add Preconditions NPE check to pool release method
package com.facebook.imagepipeline.memory;
import android.graphics.Bitmap;
+import com.facebook.common.internal.Preconditions;
import com.facebook.common.memory.MemoryTrimType;
import com.facebook.imageutils.BitmapUtil;
@@ -27,6 +28,7 @@ public class DummyBitmapPool implements BitmapPool {
@Override
public void release(Bitmap value) {
+ Preconditions.checkNotNull(value);
value.recycle();
}
}
