temp fix for b/16730607

Change-Id: I1474955d82442ad10527e2a308fa19bec7b144e9
This commit is contained in:
Andrew Sapperstein 2014-08-01 11:39:36 -07:00
parent 347c5117e4
commit 0a17fcfae5

View File

@ -1625,7 +1625,12 @@ public class EmailProvider extends ContentProvider
// Try to restore them from saved JSON
int restoredCount = 0;
for (final android.accounts.Account amAccount : amAccounts) {
final String jsonString = am.getUserData(amAccount, ACCOUNT_MANAGER_JSON_TAG);
String jsonString = null;
try {
jsonString = am.getUserData(amAccount, ACCOUNT_MANAGER_JSON_TAG);
} catch (SecurityException e) {
LogUtils.e(TAG, e, "catching exception");
}
if (TextUtils.isEmpty(jsonString)) {
continue;
}