try to catch weird npe in android sdk

This commit is contained in:
Daniel Gultsch 2015-07-11 21:24:30 +02:00
parent 5dd83a5fe6
commit 4274fe90ac

View file

@ -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);