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

Commit e49e2c81 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

Change-Id: I8478ee8607d38964e4ee960601020ca20dbde45a
parents 9c2ce806 e7100506
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;