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

Commit abbc5ef8 authored by Cassie's avatar Cassie
Browse files

Fix the NullPointerException when Radio crash.

Bug: 146805811
Test: telephony
Change-Id: If00e3683e5edf5400b6a9d3c9b0d2de0f27acbc8
parent a837de9a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -438,7 +438,7 @@ public class UiccCarrierPrivilegeRules extends Handler {
            CommandException.Error error = ((CommandException) (ar.exception)).getCommandError();
            int[] results = (int[]) ar.result;
            int statusCode = 0;
            if (results.length == 3) {
            if (ar.result != null && results.length == 3) {
                byte[] bytes = new byte[]{(byte) results[1], (byte) results[2]};
                statusCode = Integer.parseInt(IccUtils.bytesToHexString(bytes), 16);
                log("status code: " + String.valueOf(statusCode));