aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-24 13:35:39 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-24 20:22:59 +0200
commit3c925d64b47f7ba9d3b1bcf2609450669b299006 (patch)
treef6e4b2556dd3ff740de3a1b00eb9013f5002a392 /src/main/java/eu/siacs/conversations
parentacf422cbcd6e8637e13dd079dd948dabaab974c6 (diff)
catch exceptions when retrieving uri file extension
Diffstat (limited to '')
-rw-r--r--src/main/java/eu/siacs/conversations/persistance/FileBackend.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java
index 34943a52b..e7b2b4571 100644
--- a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java
+++ b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java
@@ -285,6 +285,8 @@ public class FileBackend {
if (cursor.moveToFirst()) {
filename = cursor.getString(0);
}
+ } catch (Exception e) {
+ filename = null;
} finally {
cursor.close();
}