diff options
author | Yorke Lee <yorkelee@google.com> | 2015-07-16 15:34:56 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-07-16 15:34:56 -0700 |
commit | ace83bb1f3befde4ca88a744365171f3ecff271a (patch) | |
tree | dc1b4389b2ec5981f1f40ace493a9164fdcc3912 /src | |
parent | 3cf92c747c54fa44240be5ba78cbc8eb6e3b8cd5 (diff) |
Catch CP2 exception in DefaultVoicemailNotifier
Bug: 22531073
Change-Id: I09f0b6d94de89ac9236308cec07b12fb8131bc19
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/calllog/DefaultVoicemailNotifier.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java index d0553b4ac..a6d165e3a 100644 --- a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java +++ b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java @@ -302,6 +302,9 @@ public class DefaultVoicemailNotifier { newCalls[cursor.getPosition()] = createNewCallsFromCursor(cursor); } return newCalls; + } catch (RuntimeException e) { + Log.w(TAG, "Exception when querying Contacts Provider for calls lookup"); + return null; } finally { MoreCloseables.closeQuietly(cursor); } @@ -371,6 +374,9 @@ public class DefaultVoicemailNotifier { PROJECTION, null, null, null); if (cursor == null || !cursor.moveToFirst()) return null; return cursor.getString(DISPLAY_NAME_COLUMN_INDEX); + } catch (RuntimeException e) { + Log.w(TAG, "Exception when querying Contacts Provider for name lookup"); + return null; } finally { if (cursor != null) { cursor.close(); |