| commit | 899fe999934cc9614bf22a5fd76decf21330e84a | [log] [tgz] |
|---|---|---|
| author | xulei <xulei@thundersoft.com> | Wed Sep 09 16:08:03 2015 +0800 |
| committer | xulei <xulei@thundersoft.com> | Wed Sep 09 16:08:03 2015 +0800 |
| tree | 39b3134997d20c7ded5ae62c2e808c17359ab29e | |
| parent | ed9fa79a1f4efa88ca36bff5be4b3213eb60d9b0 [diff] |
FP2-1196: [Monkey] 'com.android.gallery3d' crash Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Bitmap android.graphics.Bitmap.copy(android.graphics.Bitmap$Config, boolean)' on a null object reference Change-Id: Ida60d5aa07ff2d8e2dfb2916096ee8f3253f603f
diff --git a/src/com/android/gallery3d/filtershow/info/HistogramView.java b/src/com/android/gallery3d/filtershow/info/HistogramView.java index 99cf235..405ad95 100644 --- a/src/com/android/gallery3d/filtershow/info/HistogramView.java +++ b/src/com/android/gallery3d/filtershow/info/HistogramView.java
@@ -74,6 +74,7 @@ } public void setBitmap(Bitmap bitmap) { + if (bitmap == null) return; mBitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true); new ComputeHistogramTask().execute(mBitmap); }