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

Commit c8edd5eb authored by Ajay Panicker's avatar Ajay Panicker Committed by Gerrit Code Review
Browse files

Merge "Fix NPE when performing BLE scans."

parents b75d7aec bae77669
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,11 +154,11 @@ import com.android.bluetooth.btservice.BluetoothProto;
        }
        synchronized (mApps) {
            AppScanStats appScanStats = mAppScanStats.get(appName);
            mApps.add(new App(uuid, callback, appName, appScanStats));
            if (appScanStats == null) {
                appScanStats = new AppScanStats(appName, this, service);
                mAppScanStats.put(appName, appScanStats);
            }
            mApps.add(new App(uuid, callback, appName, appScanStats));
            appScanStats.isRegistered = true;
        }
    }