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

Commit f98facaf authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix NPE in StateMachine

Bug: 7661311
Change-Id: I8645692baf43aced1f4b364bbf13275646754b63
parent f0afe414
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.