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

Commit 10a216eb authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "PBAP: Fix NullPointerException in stop()"

parents a28beddb c2cf61d5
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -541,8 +541,12 @@ public class BluetoothPbapService extends ProfileService implements IObexConnect
        if (VERBOSE) {
            Log.v(TAG, "stop()");
        }
        if (mSessionStatusHandler != null) {
            mSessionStatusHandler.obtainMessage(SHUTDOWN).sendToTarget();
        }
        if (mHandlerThread != null) {
            mHandlerThread.quitSafely();
        }
        if (mContactChangeObserver == null) {
            Log.i(TAG, "Avoid unregister when receiver it is not registered");
            return true;