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

Commit 7b28d439 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 805cf0cd e12dc818
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) {