Merge "Fix a couple of NPEs in AdbDebuggingManager.AdbDebuggingHandler" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-12-07 23:37:10 +00:00
committed by Android (Google) Code Review

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