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

Commit f2182057 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "Pbap: Add a null pointer guard for mServerSockets"

am: 24739545

Change-Id: I5f017a221dc6a12b730f8b2ce6c7045180489fd7
parents bb80a005 24739545
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -356,6 +356,10 @@ public class BluetoothPbapService extends ProfileService implements IObexConnect
            switch (msg.what) {
                case START_LISTENER:
                    mServerSockets = ObexServerSockets.create(BluetoothPbapService.this);
                    if (mServerSockets == null) {
                        Log.w(TAG, "ObexServerSockets.create() returned null");
                        break;
                    }
                    createSdpRecord();
                    // fetch Pbap Params to check if significant change has happened to Database
                    BluetoothPbapUtils.fetchPbapParams(mContext);