diff options
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 3 |
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()); |