diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-05 15:06:55 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-05 15:06:55 +1300 |
commit | 68c35b0c14d5e11488aeed22e989a446465fd654 (patch) | |
tree | 70f3b4c575de11ffe00f3023fcdc79cb160b409d /app | |
parent | 9b4c7e7d9ca622c5253a9d5e13cfb27519bf6e8c (diff) | |
download | etbsa-traccar-manager-android-68c35b0c14d5e11488aeed22e989a446465fd654.tar.gz etbsa-traccar-manager-android-68c35b0c14d5e11488aeed22e989a446465fd654.tar.bz2 etbsa-traccar-manager-android-68c35b0c14d5e11488aeed22e989a446465fd654.zip |
Handle no result (fix #45)
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/org/traccar/manager/MainFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |