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

Commit c3414d48 authored by Ray Kuo's avatar Ray Kuo Committed by android-build-merger
Browse files

Merge "OPP: Fix the NPE in OPP service when stop() is called before start()." am: e7100506

am: e49e2c81

Change-Id: I3d3edddbe1c32ed01845222da3e912a8b7187229
parents 7ff5b53f e49e2c81
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -243,6 +243,10 @@ public class BluetoothOppService extends ProfileService implements IObexConnecti

    @Override
    public boolean stop() {
        if (sBluetoothOppService == null) {
            Log.w(TAG, "stop() called before start()");
            return true;
        }
        setBluetoothOppService(null);
        mHandler.sendMessage(mHandler.obtainMessage(STOP_LISTENER));
        return true;