diff --git a/src/com/android/settings/wifi/WifiUtils.java b/src/com/android/settings/wifi/WifiUtils.java index a9010acc68c..68d8bebd582 100644 --- a/src/com/android/settings/wifi/WifiUtils.java +++ b/src/com/android/settings/wifi/WifiUtils.java @@ -96,7 +96,7 @@ public class WifiUtils extends com.android.settingslib.wifi.WifiUtils { * @return true if Settings cannot modify the config due to lockDown. */ public static boolean isNetworkLockedDown(Context context, WifiConfiguration config) { - if (config == null) { + if (context == null || config == null) { return false; }