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

Commit 866998ca authored by Sal Savage's avatar Sal Savage Committed by Gerrit Code Review
Browse files

Merge "Fix NPE in MceStateMachine when getState() is called during shut down"

parents d816fa7b 59e81130
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -184,7 +184,7 @@ final class MceStateMachine extends StateMachine {

    public synchronized int getState() {
        IState currentState = this.getCurrentState();
        if (currentState.getClass() == Disconnected.class) {
        if (currentState == null || currentState.getClass() == Disconnected.class) {
            return BluetoothProfile.STATE_DISCONNECTED;
        }
        if (currentState.getClass() == Connected.class) {