Merge "Move from custom projections to ones in EmailContent.Body already." into ub-mail-master
diff --git a/src/com/android/exchange/Exchange.java b/src/com/android/exchange/Exchange.java
index 2b2a468..c18c86c 100644
--- a/src/com/android/exchange/Exchange.java
+++ b/src/com/android/exchange/Exchange.java
@@ -31,7 +31,12 @@
     public void onCreate() {
         super.onCreate();
         EmailContent.init(this);
-        getContentResolver().call(EmailContent.CONTENT_URI, MailboxUtilities.FIX_PARENT_KEYS_METHOD,
-                "", null);
+        try {
+            getContentResolver().call(EmailContent.CONTENT_URI,
+                    MailboxUtilities.FIX_PARENT_KEYS_METHOD, "", null);
+        } catch (IllegalArgumentException e) {
+            // If there is no Email provider (which happens if eg the
+            // Email app is disabled), ignore.
+        }
     }
 }