diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-24 13:35:39 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-06-24 20:22:59 +0200 |
commit | 3c925d64b47f7ba9d3b1bcf2609450669b299006 (patch) | |
tree | f6e4b2556dd3ff740de3a1b00eb9013f5002a392 /src/main | |
parent | acf422cbcd6e8637e13dd079dd948dabaab974c6 (diff) |
catch exceptions when retrieving uri file extension
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/eu/siacs/conversations/persistance/FileBackend.java | 2 |
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(); } |