summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxianming wang <mingwax@codeaurora.org>2018-09-05 11:12:49 +0800
committerMichael Bestas <mkbestas@lineageos.org>2019-11-09 22:47:37 +0200
commit5e810d388f15cc0a8055793c19d1b3449b249bcf (patch)
tree71626d0d77ac22ca7abd152377c72f8209600db2
parent2e088aef48a5e36d31fa51ea09c68e50caf05499 (diff)
downloadandroid_packages_apps_Snap-5e810d388f15cc0a8055793c19d1b3449b249bcf.zip
android_packages_apps_Snap-5e810d388f15cc0a8055793c19d1b3449b249bcf.tar.gz
android_packages_apps_Snap-5e810d388f15cc0a8055793c19d1b3449b249bcf.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 70d5910..bbd81e3 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));
}