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

Commit a9d6896c authored by Prameet Shah's avatar Prameet Shah
Browse files

Fix a couple of NPEs in AdbDebuggingManager.AdbDebuggingHandler

Bug: 242344103
Bug: 261526316
Test: m
Change-Id: I37fa9c7bb99d1ea1cef1bd42125bf0de7bc0adbd
(cherry picked from commit cb6ec60b034d6265cea391a3966ffdc9c72248d5)
parent 76f824b2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -667,6 +667,7 @@ public class AdbDebuggingManager {
                                    + " Not enabling adbwifi.");
                            Settings.Global.putInt(mContentResolver,
                                    Settings.Global.ADB_WIFI_ENABLED, 0);
                            return;
                        }

                        // Check for network change
@@ -675,6 +676,7 @@ public class AdbDebuggingManager {
                            Slog.e(TAG, "Unable to get the wifi ap's BSSID. Disabling adbwifi.");
                            Settings.Global.putInt(mContentResolver,
                                    Settings.Global.ADB_WIFI_ENABLED, 0);
                            return;
                        }
                        synchronized (mAdbConnectionInfo) {
                            if (!bssid.equals(mAdbConnectionInfo.getBSSID())) {