commit | 6737702e9edcf505bdf597ef7923ba060fe096a9 | [log] [tgz] |
---|---|---|
author | Nancy Chen <nancychen@google.com> | Mon May 11 13:33:47 2015 -0700 |
committer | Nancy Chen <nancychen@google.com> | Mon May 11 13:33:47 2015 -0700 |
tree | 7a9bbb7e1ee06a0ad85984f2e380539f00f918de | |
parent | 1905d8f34ee317da788244f2dde3e8b75c25c072 [diff] |
Fix crash in voicemail notifications. Ending up with an NPE because of a non-existent URI. Bug: 21004150 Change-Id: If06a05461a392fcbb2ed750dea2f8a0deb5bbd80
diff --git a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java index 61f8635..8241811 100644 --- a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java +++ b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
@@ -143,7 +143,7 @@ } } // Check if this is the new call we need to notify about. - if (newCallUri != null && + if (newCallUri != null && newCall.voicemailUri != null && ContentUris.parseId(newCallUri) == ContentUris.parseId(newCall.voicemailUri)) { callToNotify = newCall; }