diff options
| author | zdi <zdi@codeaurora.org> | 2016-02-25 11:14:33 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-03-08 18:39:27 -0800 |
| commit | ca9299d88aab17d9f912c391282de97a730ef1b9 (patch) | |
| tree | 605e31887f5c9e59ad9ac3c1291fb522fe34c3bc /src | |
| parent | ee586846cc5e3916398dc25fe59ed9f2601a4790 (diff) | |
| download | android_packages_apps_Gallery2-ca9299d88aab17d9f912c391282de97a730ef1b9.tar.gz android_packages_apps_Gallery2-ca9299d88aab17d9f912c391282de97a730ef1b9.tar.bz2 android_packages_apps_Gallery2-ca9299d88aab17d9f912c391282de97a730ef1b9.zip | |
Gallery2: Fix null pointer exception when select "Exposure".
Add null value check to avoid null pointer exception.
Change-Id: I3ee9f88edc5a957b66a255478028cbdbfe4c391d
CRs-Fixed: 979189
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/gallery3d/filtershow/FilterShowActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index a0c989379..863cd1b2c 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -446,7 +446,9 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL }); invalidateOptionsMenu(); } else { - mMenu.clear(); + if (mMenu != null) { + mMenu.clear(); + } final Fragment main = getSupportFragmentManager().findFragmentByTag( MainPanel.FRAGMENT_TAG); |
