aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-06-23 09:29:47 +0200
committerChristian Schneppe <christian@pix-art.de>2019-06-23 09:29:47 +0200
commit63a2b3f151e2bfba1a7e9af498523da3d9d8664a (patch)
treeba6382a0b6b9af36cd6c1b85cc929d59076234b2 /src/main/java/de
parentd1ae7c6abc9715caa3d8852fdc152358e05d36f3 (diff)
catch NPE
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index 39a18c9a3..968365f57 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -771,6 +771,9 @@ public class XmppConnectionService extends Service {
time.add(Calendar.DAY_OF_YEAR, -7);
final File directory = new File(path);
final File[] files = directory.listFiles();
+ if (files == null) {
+ return;
+ }
int count = 0;
for (File file : files) {
Date lastModified = new Date(file.lastModified());