diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-24 13:35:39 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-06-24 13:35:39 +0200 |
commit | d2ca0c7fe873035fce326d8001a2084c23d73a52 (patch) | |
tree | 8d192c1107fd441ef80ba5f35a640bd9e97c5775 /src | |
parent | 4d5e0c291ea8e62fc0511cb2de7a49e13cf0895e (diff) |
catch exceptions when retrieving uri file extension
Diffstat (limited to 'src')
-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 a9217b16..85b1ac90 100644 --- a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java +++ b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java @@ -268,6 +268,8 @@ public class FileBackend { if (cursor.moveToFirst()) { filename = cursor.getString(0); } + } catch (Exception e) { + filename = null; } finally { cursor.close(); } |