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

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

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

am: fdcffc5c

Change-Id: Ic9a2be008e3f11d0700f9422fd84e586d3040df0
parents 75347241 fdcffc5c
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;