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

Commit 74a9c32a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Avoid crash when the caller passes null message obj" into tm-dev

parents 5141d405 c56a0d12
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -257,8 +257,13 @@ public class UiccProfile extends IccCard {
                        logWithLocalLog("handleMessage: Error in SIM access with exception "
                                + ar.exception);
                    }
                    if (ar.userObj != null) {
                        AsyncResult.forMessage((Message) ar.userObj, ar.result, ar.exception);
                        ((Message) ar.userObj).sendToTarget();
                    } else {
                        loge("handleMessage: ar.userObj is null in event:" + eventName
                                + ", failed to post status back to caller");
                    }
                    break;
                }