From 68c35b0c14d5e11488aeed22e989a446465fd654 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 5 Mar 2017 15:06:55 +1300 Subject: Handle no result (fix #45) --- app/src/main/java/org/traccar/manager/MainFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/java/org/traccar/manager/MainFragment.java b/app/src/main/java/org/traccar/manager/MainFragment.java index 4d71e25..4d88b2f 100644 --- a/app/src/main/java/org/traccar/manager/MainFragment.java +++ b/app/src/main/java/org/traccar/manager/MainFragment.java @@ -143,7 +143,7 @@ public class MainFragment extends WebViewFragment { openFileCallback = null; } if (openFileCallback2 != null) { - openFileCallback2.onReceiveValue(new Uri[] { result }); + openFileCallback2.onReceiveValue(result != null ? new Uri[] { result } : new Uri[0]); openFileCallback2 = null; } } -- cgit v1.2.3