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

Commit 021e4516 authored by Cassie Han's avatar Cassie Han Committed by Gerrit Code Review
Browse files

Merge "Fix the NullPointerException when Radio crash."

parents 16c94880 abbc5ef8
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));