aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-05 15:06:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-03-05 15:06:55 +1300
commit68c35b0c14d5e11488aeed22e989a446465fd654 (patch)
tree70f3b4c575de11ffe00f3023fcdc79cb160b409d
parent9b4c7e7d9ca622c5253a9d5e13cfb27519bf6e8c (diff)
downloadetbsa-traccar-manager-android-68c35b0c14d5e11488aeed22e989a446465fd654.tar.gz
etbsa-traccar-manager-android-68c35b0c14d5e11488aeed22e989a446465fd654.tar.bz2
etbsa-traccar-manager-android-68c35b0c14d5e11488aeed22e989a446465fd654.zip
Handle no result (fix #45)
-rw-r--r--app/src/main/java/org/traccar/manager/MainFragment.java2
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;
}
}