summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcore/java/com/google/android/mms/pdu/PduParser.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/com/google/android/mms/pdu/PduParser.java b/core/java/com/google/android/mms/pdu/PduParser.java
index f7f71ed5f921..015d864a01ea 100755
--- a/core/java/com/google/android/mms/pdu/PduParser.java
+++ b/core/java/com/google/android/mms/pdu/PduParser.java
@@ -934,6 +934,9 @@ public class PduParser {
int temp = pduDataStream.read();
assert(-1 != temp);
int first = temp & 0xFF;
+ if (first == 0) {
+ return null; // Blank subject, bail.
+ }
pduDataStream.reset();
if (first < TEXT_MIN) {