1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2026-08-17 03:12:57 +00:00
This fixes issue #73
existingMessages could be null because _existingInboxMessages and other variables could be null when no messages are found in the upcoming JSON file.
This commit is contained in:
Ner'zhul
2015-12-01 15:10:05 +01:00
committed by Loïc Blot
parent e6e0a97bef
commit 651cde0441
@@ -272,9 +272,11 @@ public class SmsFetcher {
existingMessages = _existingDraftsMessages;
} else if (_mbID == MailboxID.SENT) {
existingMessages = _existingSentMessages;
} else {
return "";
}
}
if (existingMessages == null) {
return "";
}
// Note: The default case isn't possible, we check the mailbox before
StringBuilder sb = new StringBuilder();