aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-07-11 21:24:30 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-07-11 21:24:30 +0200
commit4274fe90ac8d08cd7e837d7c03a91ed9ea0f9b19 (patch)
treea67e90f86f7d7718862d88e997c21969ec57a293 /src/main
parent5dd83a5fe685dd3268986ca0a73f21c4dcbc6af5 (diff)
try to catch weird npe in android sdk
Diffstat (limited to 'src/main')
-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 ee53e90e..ab191285 100644
--- a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java
+++ b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java
@@ -235,6 +235,8 @@ public class FileBackend {
} else {
throw new FileCopyException(R.string.error_out_of_memory);
}
+ } catch (NullPointerException e) {
+ throw new FileCopyException(R.string.error_io_exception);
} finally {
close(os);
close(is);