summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-07-02 15:33:24 -0700
committernicolasroard <nicolasroard@google.com>2013-07-02 15:33:24 -0700
commit68ff24597aa829f4ef4d9bd1ab21c3ff9e42f217 (patch)
tree084c3200dfb1d5b0e42a551dfe04b255a350b97b /src
parent68ce09f03fdf73c48295d3d2b6615b21d72b1399 (diff)
downloadandroid_packages_apps_Snap-68ff24597aa829f4ef4d9bd1ab21c3ff9e42f217.tar.gz
android_packages_apps_Snap-68ff24597aa829f4ef4d9bd1ab21c3ff9e42f217.tar.bz2
android_packages_apps_Snap-68ff24597aa829f4ef4d9bd1ab21c3ff9e42f217.zip
Fix crash in geometry
Change-Id: I4c9292b539643f2e2738d788dcb58f0a129254f9
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/editors/Editor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/editors/Editor.java b/src/com/android/gallery3d/filtershow/editors/Editor.java
index 5d9755c8b..789c728a2 100644
--- a/src/com/android/gallery3d/filtershow/editors/Editor.java
+++ b/src/com/android/gallery3d/filtershow/editors/Editor.java
@@ -202,7 +202,7 @@ public class Editor implements OnSeekBarChangeListener, SwapButton.SwapButtonLis
ImagePreset preset = MasterImage.getImage().getPreset();
FilterRepresentation filterRepresentation = MasterImage.getImage().getCurrentFilterRepresentation();
mLocalRepresentation = preset.getFilterRepresentationCopyFrom(filterRepresentation);
- if (mShowParameter == SHOW_VALUE_UNDEFINED) {
+ if (mShowParameter == SHOW_VALUE_UNDEFINED && filterRepresentation != null) {
boolean show = filterRepresentation.showParameterValue();
mShowParameter = show ? SHOW_VALUE_INT : SHOW_VALUE_OFF;
}