mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2025-08-15 21:17:02 +00:00
Crashfix
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:
parent
e6e0a97bef
commit
651cde0441
@ -272,9 +272,11 @@ public class SmsFetcher {
|
|||||||
existingMessages = _existingDraftsMessages;
|
existingMessages = _existingDraftsMessages;
|
||||||
} else if (_mbID == MailboxID.SENT) {
|
} else if (_mbID == MailboxID.SENT) {
|
||||||
existingMessages = _existingSentMessages;
|
existingMessages = _existingSentMessages;
|
||||||
} else {
|
}
|
||||||
return "";
|
|
||||||
}
|
if (existingMessages == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
// Note: The default case isn't possible, we check the mailbox before
|
// Note: The default case isn't possible, we check the mailbox before
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user