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

Commit 84be6a08 authored by Cassie Han's avatar Cassie Han Committed by android-build-merger
Browse files

Merge "Fix the NullPointerException when Radio crash."

am: 021e4516

Change-Id: I3f2ad9703b3e4b79d862312401005df463ee37d8
parents 080950f8 021e4516
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));