Merge "fix WifiUtils:isNetworkLockedDown() null pointer issue"

This commit is contained in:
Weng Su
2022-12-10 08:11:40 +00:00
committed by Gerrit Code Review

View File

@@ -86,7 +86,7 @@ public class WifiUtils extends com.android.settingslib.wifi.WifiUtils {
* @return true if Settings cannot modify the config due to lockDown. * @return true if Settings cannot modify the config due to lockDown.
*/ */
public static boolean isNetworkLockedDown(Context context, WifiConfiguration config) { public static boolean isNetworkLockedDown(Context context, WifiConfiguration config) {
if (config == null) { if (context == null || config == null) {
return false; return false;
} }