diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-07-11 21:24:30 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-07-11 21:24:30 +0200 |
commit | 4274fe90ac8d08cd7e837d7c03a91ed9ea0f9b19 (patch) | |
tree | a67e90f86f7d7718862d88e997c21969ec57a293 /src/main/java/eu/siacs | |
parent | 5dd83a5fe685dd3268986ca0a73f21c4dcbc6af5 (diff) |
try to catch weird npe in android sdk
Diffstat (limited to 'src/main/java/eu/siacs')
-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 ee53e90e8..ab1912856 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); |