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

Commit c56a0d12 authored by arunvoddu's avatar arunvoddu Committed by Arun kumar Voddu
Browse files

Avoid crash when the caller passes null message obj

Bug: 230081641
Test: Verified aTest and systematic approach with external app
Change-Id: Ibbd525fc90ef3db86d369a78e906fdc1fb3449e6
parent 159faa2b
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;
                }