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

Commit d5eaab92 authored by SongFerngWang's avatar SongFerngWang
Browse files

Fix ClassCastException : ar.result can't be cast to Integer

Bug: 173677283
Test: Build PASS
Change-Id: I86a02491cfa67e8ddfb7d90387bc32a23ae54ff5
parent 93a50596
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1382,7 +1382,8 @@ public final class ImsPhoneMmiCode extends Handler implements MmiCode {
            } else if (ar.exception instanceof ImsException) {
                sb.append(getImsErrorMessage(ar));
            }
        } else if (ar.result != null && (int) ar.result == CommandsInterface.SS_STATUS_UNKNOWN) {
        } else if (ar.result != null && ar.result instanceof Integer
                && (int) ar.result == CommandsInterface.SS_STATUS_UNKNOWN) {
            mState = State.FAILED;
            sb = null;
        } else if (isActivate()) {