Commit 3c2f1002 authored by jinwu's avatar jinwu Committed by Arne Coucheron

Fix FC of parsing uri is null

Add judgement to check if uri is null or not.

Change-Id: I95d79253bce67c6a088a79bffd1bbb9a419ec437
parent ba099de8
......@@ -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);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment