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

Commit 0117b995 authored by Ningyuan Wang's avatar Ningyuan Wang
Browse files

Enforce null check for mAccessPoint

mAccessPoint == null implies this is a new network.
In this case, we don't need to check if it's a carrier AP.

Bug: 68846574
Test: compile, manually test that crash does not happen again.
Test: make RunSettingsRoboTests -j40 aROBOTEST_FILTER=WifiConfigControllerTest

Change-Id: I03b1da5e8f0b8e4270c0c52c67bbc90c999be078
parent 63e09f1f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1030,7 +1030,7 @@ public class WifiConfigController implements TextWatcher,
                setUserCertInvisible();
                setPasswordInvisible();
                setIdentityInvisible();
                if (mAccessPoint.isCarrierAp()) {
                if (mAccessPoint != null && mAccessPoint.isCarrierAp()) {
                    setEapMethodInvisible();
                }
                break;