From 34822557a6087f7ab824c9761f222b8a651584fe Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Sun, 24 Feb 2013 11:59:43 -0800 Subject: [PATCH] Catch exception triggered by bug in telephony provider during import. --- src/org/thoughtcrime/securesms/database/SmsMigrator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/database/SmsMigrator.java b/src/org/thoughtcrime/securesms/database/SmsMigrator.java index 86209f17df..5585698aa4 100644 --- a/src/org/thoughtcrime/securesms/database/SmsMigrator.java +++ b/src/org/thoughtcrime/securesms/database/SmsMigrator.java @@ -103,7 +103,9 @@ public class SmsMigrator { } else { return null; } - + } catch (IllegalStateException iae) { + Log.w("SmsMigrator", iae); + return null; } finally { if (cursor != null) cursor.close();