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

Commit de77e7bf authored by Weng Su's avatar Weng Su
Browse files

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
parent 3a9777c8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -653,6 +653,9 @@ public class WifiConfigController implements TextWatcher,
            case AccessPoint.SECURITY_EAP:
            case AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE:
            case AccessPoint.SECURITY_EAP_SUITE_B:
                if (mEapMethodSpinner == null || mPhase2Spinner == null) {
                    break;
                }
                if (mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) {
                    // allowedSuiteBCiphers will be set according to certificate type
                    config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_SUITE_B);