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

Commit d853e5a1 authored by zhuw's avatar zhuw
Browse files

Fix AssertionError int StateManager

we should verify null pointer before we call getTopState

Change-Id: I48a22fdb859d5edbc968948939408ee5eccf6e74
CRs-Fixed: 2079520
parent e7dc0d2a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -130,8 +130,10 @@ public class StateManager {
    }

    public void notifyActivityResult(int requestCode, int resultCode, Intent data) {
        if (!mStack.isEmpty()) {
            getTopState().onStateResult(requestCode, resultCode, data);
        }
    }

    public void clearActivityResult() {
        if (!mStack.isEmpty()) {