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

Commit 99468347 authored by Prameet Shah's avatar Prameet Shah Committed by Gerrit Code Review
Browse files

Merge "Fix a couple of NPEs in AdbDebuggingManager.AdbDebuggingHandler"

parents 2e933599 7fe4dcfe
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -667,6 +667,7 @@ public class AdbDebuggingManager {
                                    + " Not enabling adbwifi.");
                                    + " Not enabling adbwifi.");
                            Settings.Global.putInt(mContentResolver,
                            Settings.Global.putInt(mContentResolver,
                                    Settings.Global.ADB_WIFI_ENABLED, 0);
                                    Settings.Global.ADB_WIFI_ENABLED, 0);
                            return;
                        }
                        }


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