Merge "Add null check for the parameter CallerInfo in onCallerInfoQueryComplete"
This commit is contained in:
commit
a96f8a59d2
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue