summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-05-11 13:33:47 -0700
committerNancy Chen <nancychen@google.com>2015-05-11 13:33:47 -0700
commit6737702e9edcf505bdf597ef7923ba060fe096a9 (patch)
tree7a9bbb7e1ee06a0ad85984f2e380539f00f918de
parent1905d8f34ee317da788244f2dde3e8b75c25c072 (diff)
Fix crash in voicemail notifications.
Ending up with an NPE because of a non-existent URI. Bug: 21004150 Change-Id: If06a05461a392fcbb2ed750dea2f8a0deb5bbd80
-rw-r--r--src/com/android/dialer/calllog/DefaultVoicemailNotifier.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
index 61f8635be..8241811b7 100644
--- a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
+++ b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
@@ -143,7 +143,7 @@ public class DefaultVoicemailNotifier implements VoicemailNotifier {
}
}
// 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;
}