From 48576dbb584464efa2bfc5c98a88cfa434965c64 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Tue, 26 Feb 2013 22:57:09 -0800 Subject: [PATCH] Catch mysterious SMS too large exception. --- src/org/thoughtcrime/securesms/service/SmsSender.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/thoughtcrime/securesms/service/SmsSender.java b/src/org/thoughtcrime/securesms/service/SmsSender.java index 750497ee71..c2e3071ca7 100644 --- a/src/org/thoughtcrime/securesms/service/SmsSender.java +++ b/src/org/thoughtcrime/securesms/service/SmsSender.java @@ -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); } } }