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

Commit 56a715ef authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in StateMachine"

parents efe89f28 f98facaf
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -863,6 +863,8 @@ public class StateMachine {
                }
            }

            // Log only if state machine has not quit
            if (mSm != null) {
                if (mLogRecords.logOnlyTransitions()) {
                    /** Record only if there is a transition */
                    if (destState != null) {
@@ -875,6 +877,7 @@ public class StateMachine {
                            orgState, destState);
                }
            }
        }

        /**
         * Cleanup all the static variables and the looper after the SM has been quit.