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

Commit 6d3ed70c authored by Youming Ye's avatar Youming Ye Committed by paulye
Browse files

Fix null pointer exception caused by mCallProfile

Bug: 135445348
Test: Build
Change-Id: I744354f5dc43b0667bf80b86745b61adc39908be
parent 85f6eb0c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -3486,10 +3486,11 @@ public class ImsCall implements ICall {
        sb.append(isOnHold() ? "Y" : "N");
        sb.append(" mute:");
        sb.append(isMuted() ? "Y" : "N");
        if (mCallProfile != null) {
            sb.append(" mCallProfile:" + mCallProfile);
        ImsCallProfile imsCallProfile = mCallProfile;
        if (imsCallProfile != null) {
            sb.append(" mCallProfile:" + imsCallProfile);
            sb.append(" tech:");
            sb.append(mCallProfile.getCallExtra(ImsCallProfile.EXTRA_CALL_RAT_TYPE));
            sb.append(imsCallProfile.getCallExtra(ImsCallProfile.EXTRA_CALL_RAT_TYPE));
        }
        sb.append(" updateRequest:");
        sb.append(updateRequestToString(mUpdateRequest));