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

Commit 43d1c45e authored by Sravanthi Palakonda's avatar Sravanthi Palakonda Committed by Akash Patel
Browse files

Wifi: Handle NullPointerException during AddNetwork for EAP types

While we do AddNetwork for EAP type - SIM/AKA/AKAPRIME
,NullPointerException is observed .Handle this by adding a null check
for the Accesspoint object.

Change-Id: I6d20eaa5ab734f11bfa5e038d894cb8ead07f204
CRs-Fixed: 923371
parent f36c88df
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -800,7 +800,10 @@ public class WifiConfigController implements TextWatcher,
            case WIFI_EAP_METHOD_SIM:
            case WIFI_EAP_METHOD_AKA:
            case WIFI_EAP_METHOD_AKA_PRIME:
                WifiConfiguration config = mAccessPoint.getConfig();
                WifiConfiguration config = null;
                if (mAccessPoint != null) {
                    config = mAccessPoint.getConfig();
                }
                ArrayAdapter<String> eapSimAdapter = new ArrayAdapter<String>(
                         mContext, android.R.layout.simple_spinner_item,
                         mSimDisplayNames.toArray(new String[mSimDisplayNames.size()])