From b47a9a9388fd4d3c01a7cc47d387d98b10f036f5 Mon Sep 17 00:00:00 2001 From: jinwu Date: Thu, 1 Feb 2018 18:25:31 +0800 Subject: Fix FC of parsing uri is null Add judgement to check if uri is null or not. Change-Id: I95d79253bce67c6a088a79bffd1bbb9a419ec437 --- src/com/android/gallery3d/util/GDepth.java | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3