Fix NullPointerException in WifiConfigController
- Add null checking for spinners to avoid NullPointerException in Monkey tests. Fix: 302628103 Test: unit test atest -c WifiConfigControllerTest Change-Id: I301163b85b0b87edba9eee2c1b34d5a6104eaaea
This commit is contained in:
@@ -653,6 +653,9 @@ public class WifiConfigController implements TextWatcher,
|
|||||||
case AccessPoint.SECURITY_EAP:
|
case AccessPoint.SECURITY_EAP:
|
||||||
case AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE:
|
case AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE:
|
||||||
case AccessPoint.SECURITY_EAP_SUITE_B:
|
case AccessPoint.SECURITY_EAP_SUITE_B:
|
||||||
|
if (mEapMethodSpinner == null || mPhase2Spinner == null) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) {
|
if (mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) {
|
||||||
// allowedSuiteBCiphers will be set according to certificate type
|
// allowedSuiteBCiphers will be set according to certificate type
|
||||||
config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_SUITE_B);
|
config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_SUITE_B);
|
||||||
|
Reference in New Issue
Block a user