summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxianming wang <mingwax@codeaurora.org>2018-09-05 11:12:49 +0800
committerdianlujitao <dianlujitao@lineageos.org>2018-12-19 14:00:01 +0800
commit6eac3e4e7bb5b6b96593528269d60172fa092daa (patch)
tree2aa2096fe181e9e30ace4a0fa821d85128257285
parent1d9bd67542409eacd1ce19de80a6db0be9de2b68 (diff)
downloadandroid_packages_apps_Snap-6eac3e4e7bb5b6b96593528269d60172fa092daa.zip
android_packages_apps_Snap-6eac3e4e7bb5b6b96593528269d60172fa092daa.tar.gz
android_packages_apps_Snap-6eac3e4e7bb5b6b96593528269d60172fa092daa.tar.bz2
SnapdragonCamera: Fix parameters NullPointerException
Fix parameters is NullPointerException in China App Stress. CRs-Fixed: 2307806 Change-Id: I71fff4cb32361ad0e66d6460ca8dc01167c8a009
-rwxr-xr-xsrc/com/android/camera/util/CameraUtil.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/util/CameraUtil.java b/src/com/android/camera/util/CameraUtil.java
index 4d9cb70..db86e75 100755
--- a/src/com/android/camera/util/CameraUtil.java
+++ b/src/com/android/camera/util/CameraUtil.java
@@ -188,6 +188,7 @@ public class CameraUtil {
}
public static boolean isVideoSnapshotSupported(Parameters params) {
+ if (params == null) return false;
return TRUE.equals(params.get(VIDEO_SNAPSHOT_SUPPORTED));
}