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

Commit babfa91d authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Skip setVoiceMailNumber() operation if SIMRecords is disposed.

Test: atest FrameworksTelephonyTests
Bug: 160638185
Change-Id: I0c7a31a4127bf4d8b1ff401d0457d60bd93611e6
parent 183fb8ea
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -354,6 +354,10 @@ public class SIMRecords extends IccRecords {
    @Override
    public void setVoiceMailNumber(String alphaTag, String voiceNumber,
            Message onComplete) {
        if (mDestroyed.get()) {
            return;
        }

        if (mIsVoiceMailFixed) {
            AsyncResult.forMessage((onComplete)).exception =
                    new IccVmFixedException("Voicemail number is fixed by operator");