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

Commit f602eea1 authored by Hansong Zhang's avatar Hansong Zhang Committed by android-build-merger
Browse files

Merge "PBAP: Fix NullPointerException in stop()"

am: 10a216eb

Change-Id: I70fff498eedcfc0b142666d2d07476b83af5c29b
parents cfab9997 10a216eb
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;