From 3c925d64b47f7ba9d3b1bcf2609450669b299006 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 24 Jun 2016 13:35:39 +0200 Subject: catch exceptions when retrieving uri file extension --- src/main/java/eu/siacs/conversations/persistance/FileBackend.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java') 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(); } -- cgit v1.2.3