Fix NPE when RetrieveConf is null

Fixes #2828
Closes #2829
// FREEBIE
This commit is contained in:
Jake McGinty
2015-03-30 10:46:14 -07:00
committed by Moxie Marlinspike
parent e6b2d31db7
commit 491440094b
4 changed files with 10 additions and 3 deletions

View File

@@ -86,6 +86,9 @@ public class MmsDownloadJob extends MasterSecretJob {
try {
RetrieveConf retrieveConf = getMmsConnection(context).retrieve(contentLocation, transactionId);
if (retrieveConf == null) {
throw new MmsException("RetrieveConf was null");
}
storeRetrievedMms(masterSecret, contentLocation, messageId, threadId, retrieveConf);
} catch (ApnUnavailableException e) {
Log.w(TAG, e);