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

Commit e99bb810 authored by lijilou's avatar lijilou
Browse files

Telecom:fix NPE problem in the CallSManager java file.

   The parameter phoneAccountHandle come from the getTargetPhoneAccount
  method,but the return val may be null.

Test:Manual
Bug: 340310281
Change-Id: I38c5473450b58c464213b53c0bce9270bdac7e47
parent d033ff82
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4850,6 +4850,7 @@ public class CallsManager extends Call.ListenerBase
                // change what an "active call" is so that the call in SELECT_PHONE_ACCOUNT state
                // will be properly cancelled.
                call.getTargetPhoneAccount() != null
                        && phoneAccountHandle != null
                        && !phoneAccountHandle.getComponentName().equals(
                                call.getTargetPhoneAccount().getComponentName())
                        && call.getParentCall() == null