diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-02-08 21:39:33 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-02-08 21:39:33 +0100 |
commit | 256bc64d314d403dc6b40549f687872963726f05 (patch) | |
tree | 1db2a84b633b7a89c1824d9592fd8ea55887832e /src/main/java/de/pixart/messenger/services | |
parent | cfa440d668dcd6605d2bb811bcc7d2a621752863 (diff) |
Stop Conversations force closing over sqlite errors due to long messages
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/ExportLogsService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/ExportLogsService.java b/src/main/java/de/pixart/messenger/services/ExportLogsService.java index d7948d651..61d8a921d 100644 --- a/src/main/java/de/pixart/messenger/services/ExportLogsService.java +++ b/src/main/java/de/pixart/messenger/services/ExportLogsService.java @@ -119,6 +119,8 @@ public class ExportLogsService extends Service { BufferedWriter bw = null; try { for (Message message : mDatabaseBackend.getMessagesIterable(conversation)) { + if (message == null) + continue; if (message.getType() == Message.TYPE_TEXT || message.hasFileOnRemoteHost()) { String date = simpleDateFormat.format(new Date(message.getTimeSent())); if (bw == null) { |