aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/utils
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-01-04 20:14:08 +0100
committerDaniel Gultsch <daniel@gultsch.de>2016-01-04 20:14:08 +0100
commitfb97f9d18f4a4152983ffbbfa2bae5881f3f22ce (patch)
tree73e93f69ea33a03a5c2de3d31c2a2eaa2e08dc8f /src/main/java/eu/siacs/conversations/utils
parentabdb8bfb65cda02adcb6c1bcbdcd00159fc0c96a (diff)
null check in getOriginalPath
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils')
-rw-r--r--src/main/java/eu/siacs/conversations/utils/FileUtils.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/FileUtils.java b/src/main/java/eu/siacs/conversations/utils/FileUtils.java
index c29841112..ad8b8640f 100644
--- a/src/main/java/eu/siacs/conversations/utils/FileUtils.java
+++ b/src/main/java/eu/siacs/conversations/utils/FileUtils.java
@@ -23,6 +23,9 @@ public class FileUtils {
*/
@SuppressLint("NewApi")
public static String getPath(final Context context, final Uri uri) {
+ if (uri == null) {
+ return null;
+ }
final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;