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

Commit c3854a11 authored by SongFerngWang's avatar SongFerngWang
Browse files

Fix queryCLIP's ClassCastException

The queryCLIP typed cast ImsSsInfo to Bundle, and
caused the ClassCastException

Bug: 181528321
Test: make build pass.
Change-Id: I6e78cbd6106fe98a439bceda1caaf7da21525b22
parent 440c34dd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1837,9 +1837,9 @@ public class ImsPhone extends ImsPhoneBase {
                break;

            case EVENT_GET_CLIP_DONE:
                Bundle ssInfoResp = null;
                if (ar.exception == null) {
                    ssInfoResp = (Bundle) ar.result;
                ImsSsInfo ssInfoResp = null;
                if (ar.exception == null && ar.result instanceof ImsSsInfo) {
                    ssInfoResp = (ImsSsInfo) ar.result;
                }
                if (ss != null) {
                    sendResponseOrRetryOnCsfbSs(ss, msg.what, ar.exception, ssInfoResp);