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

Commit 98231dd4 authored by Hunsuk Choi's avatar Hunsuk Choi
Browse files

Fix NPE with startImsTrafficResponse

ConnectionFailureInfo is defined as @nullable.

Bug: 234095136
Test: manual
Change-Id: I739f54c4f4dd1bc7389a53c35986eac2a8810692
Merged-In: I739f54c4f4dd1bc7389a53c35986eac2a8810692
parent 21f2acd3
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -56,11 +56,13 @@ public class ImsResponse extends IRadioImsResponse.Stub {
            Object[] response = { "", null };

            if (responseInfo.error == RadioError.NONE) {
                if (failureInfo != null) {
                    int[] info = new int[3];
                    info[0] = failureInfo.failureReason;
                    info[1] = failureInfo.causeCode;
                    info[2] = failureInfo.waitTimeMillis;
                    response[1] = info;
                }

                RadioResponse.sendMessageResponse(rr.mResult, response);
            }