diff options
| author | jinwu <jinwu@codeaurora.org> | 2018-02-01 18:25:31 +0800 |
|---|---|---|
| committer | LuK1337 <priv.luk@gmail.com> | 2019-10-21 21:40:56 +0200 |
| commit | b47a9a9388fd4d3c01a7cc47d387d98b10f036f5 (patch) | |
| tree | ee842878754f0db1cb590c78788043b33a204ca8 | |
| parent | a674df5097ada2c408a03c7c0bd44d032cb72ca6 (diff) | |
| download | android_packages_apps_Gallery2-b47a9a9388fd4d3c01a7cc47d387d98b10f036f5.tar.gz android_packages_apps_Gallery2-b47a9a9388fd4d3c01a7cc47d387d98b10f036f5.tar.bz2 android_packages_apps_Gallery2-b47a9a9388fd4d3c01a7cc47d387d98b10f036f5.zip | |
Fix FC of parsing uri is null
Add judgement to check if uri is null or not.
Change-Id: I95d79253bce67c6a088a79bffd1bbb9a419ec437
| -rw-r--r-- | src/com/android/gallery3d/util/GDepth.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/util/GDepth.java b/src/com/android/gallery3d/util/GDepth.java index 877ac049d..39d8db1d2 100644 --- a/src/com/android/gallery3d/util/GDepth.java +++ b/src/com/android/gallery3d/util/GDepth.java @@ -64,6 +64,7 @@ public class GDepth { public boolean parse(Context context, Uri uri) { InputStream is = null; + if (uri == null) return valid(); try { is = context.getContentResolver().openInputStream(uri); XMPStream stream = new XMPStream(is); |
