Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52cd5fd6 authored by Yorke Lee's avatar Yorke Lee
Browse files

Fix potential NPE in DefaultVoicemailNotifier

Don't try to format an empty number

Bug: 26095129
Change-Id: I6356c24e03066babd22217b24004f9ae9a53a67b
parent f63db143
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
                    }
                }