Catch mysterious SMS too large exception.

This commit is contained in:
Moxie Marlinspike 2013-02-26 22:57:09 -08:00
parent 5ca7b1080c
commit 48576dbb58

View File

@ -262,6 +262,9 @@ public class SmsSender {
} catch (NullPointerException npe) {
Log.w("SmsSender", npe);
DatabaseFactory.getSmsDatabase(context).markAsSentFailed(messageId);
} catch (IllegalArgumentException iae) {
Log.w("SmsSender", iae);
DatabaseFactory.getSmsDatabase(context).markAsSentFailed(messageId);
}
}
}