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

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

am: f2182057

Change-Id: I4b9f9ef88b3e0860031143deb52992cf4fcd84b8
parents 6c4ab099 f2182057
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);