Merge "fix WifiUtils:isNetworkLockedDown() null pointer issue"
This commit is contained in:
@@ -86,7 +86,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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user