summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/filtershow/category/CategoryAdapter.java')
-rw-r--r--src/com/android/gallery3d/filtershow/category/CategoryAdapter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java b/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java
index 445ef5f6a..6451c39df 100644
--- a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java
+++ b/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java
@@ -149,6 +149,9 @@ public class CategoryAdapter extends ArrayAdapter<Action> {
}
public void reflectImagePreset(ImagePreset preset) {
+ if (preset == null) {
+ return;
+ }
int selected = 0; // if nothing found, select "none" (first element)
FilterRepresentation rep = null;
if (mCategory == MainPanel.LOOKS) {