diff --git a/src/com/android/server/telecom/CallsManager.java b/src/com/android/server/telecom/CallsManager.java index e136950d6..265c85980 100644 --- a/src/com/android/server/telecom/CallsManager.java +++ b/src/com/android/server/telecom/CallsManager.java @@ -1766,7 +1766,8 @@ public class CallsManager extends Call.ListenerBase new CallerInfoLookupHelper.OnQueryCompleteListener() { @Override public void onCallerInfoQueryComplete(Uri handle, CallerInfo info) { - if (info.preferredPhoneAccountComponent != null && + if (info != null && + info.preferredPhoneAccountComponent != null && info.preferredPhoneAccountId != null && !info.preferredPhoneAccountId.isEmpty()) { PhoneAccountHandle contactDefaultHandle = new PhoneAccountHandle(