Fix a couple of NPEs in AdbDebuggingManager.AdbDebuggingHandler

Bug: 242344103
Bug: 261526316
Test: m
Change-Id: I37fa9c7bb99d1ea1cef1bd42125bf0de7bc0adbd
(cherry picked from commit cb6ec60b034d6265cea391a3966ffdc9c72248d5)
This commit is contained in:
Prameet Shah
2022-08-12 14:16:17 -07:00
parent 76f824b2f9
commit a9d6896c83

View File

@@ -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())) {