summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 c40c99384..2b894a12d 100644
--- a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
+++ b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
@@ -154,7 +154,7 @@ public class DefaultVoicemailNotifier {
if (TextUtils.isEmpty(name)) {
// Look it up in the database.
name = mNameLookupQuery.query(newCall.number);
- if (TextUtils.isEmpty(name)) {
+ if (TextUtils.isEmpty(name) && !TextUtils.isEmpty(newCall.number)) {
name = PhoneNumberUtils.formatNumber(newCall.number, newCall.countryIso);
}
}