diff options
author | Yorke Lee <yorkelee@google.com> | 2015-07-16 23:43:16 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-16 23:43:16 +0000 |
commit | d30106bce1552f9f094dd1d104bbab91191c8d10 (patch) | |
tree | eb03890afd657c56450449872f3ae7ea11f5aea9 | |
parent | 9525a1edbdc320cf7cba394fbac4c885a1994130 (diff) | |
parent | 5328566d07ef0b2730ca25c07dbc55b874906ce8 (diff) |
am 5328566d: am 7293a99b: am aab92012: Merge "Catch CP2 exception in DefaultVoicemailNotifier" into mnc-dev
* commit '5328566d07ef0b2730ca25c07dbc55b874906ce8':
Catch CP2 exception in DefaultVoicemailNotifier
-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(); |