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

Commit 1fd6b928 authored by Ashwini Munigala's avatar Ashwini Munigala Committed by android-build-merger
Browse files

Merge "MAP: Handle possible NPE while disconnect map."

am: 7cbec75e

* commit '7cbec75e':
  MAP: Handle possible NPE while disconnect map.
parents fb21ad82 7cbec75e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -405,7 +405,7 @@ public class BluetoothMapService extends ProfileService {
                    if (DEBUG) Log.d(TAG,"ContentObserver Registration MASID: " + msg.arg1
                        + " Enable: " + msg.arg2);
                    BluetoothMapMasInstance masInst = mMasInstances.get(msg.arg1);
                    if (masInst != null) {
                    if (masInst != null && masInst.mObserver != null) {
                        try {
                            if (msg.arg2 == BluetoothMapAppParams.NOTIFICATION_STATUS_YES) {
                                masInst.mObserver.registerObserver();