diff --git a/src/org/thoughtcrime/securesms/service/MmsDownloader.java b/src/org/thoughtcrime/securesms/service/MmsDownloader.java index 85fe78463d..ef9981ed78 100644 --- a/src/org/thoughtcrime/securesms/service/MmsDownloader.java +++ b/src/org/thoughtcrime/securesms/service/MmsDownloader.java @@ -71,20 +71,20 @@ public class MmsDownloader extends MmscProcessor { getApnInformation()); RetrieveConf retrieved = (RetrieveConf)new PduParser(pdu).parse(); + if (retrieved == null) + throw new IOException("Bad retrieved PDU"); + for (int i=0;i