Fix NPE introduced by #6886

This commit is contained in:
Moxie Marlinspike 2018-03-09 11:14:37 -08:00
parent 34ed55d3ac
commit 40d14698b8

View File

@ -95,6 +95,9 @@ public class IncomingLollipopMmsConnection extends LollipopMmsConnection impleme
Log.w(TAG, baos.size() + "-byte response: ");// + Hex.dump(baos.toByteArray())); Log.w(TAG, baos.size() + "-byte response: ");// + Hex.dump(baos.toByteArray()));
RetrieveConf retrieved = (RetrieveConf) new PduParser(baos.toByteArray()).parse(); RetrieveConf retrieved = (RetrieveConf) new PduParser(baos.toByteArray()).parse();
if (retrieved == null) return null;
sendRetrievedAcknowledgement(transactionId, retrieved.getMmsVersion(), subscriptionId); sendRetrievedAcknowledgement(transactionId, retrieved.getMmsVersion(), subscriptionId);
return retrieved; return retrieved;
} catch (IOException | TimeoutException e) { } catch (IOException | TimeoutException e) {