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

Commit 7a86f178 authored by Qingqi Lei's avatar Qingqi Lei
Browse files

Fix the null check for ImsPhone

Fix: 258307033
Test: atest VoiceCallSessionStatsTest
Change-Id: I0898dafe2dcca2fbef3854e61c100064669c4fe0
parent 0611a83a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -357,9 +357,9 @@ public class VoiceCallSessionStats {
    public synchronized void onRilSrvccStateChanged(int state) {
        List<Connection> handoverConnections = null;
        if (mPhone.getImsPhone() != null) {
            loge("onRilSrvccStateChanged: ImsPhone is null");
        } else {
            handoverConnections = mPhone.getImsPhone().getHandoverConnection();
        } else {
            loge("onRilSrvccStateChanged: ImsPhone is null");
        }
        List<Integer> imsConnIds;
        if (handoverConnections == null) {