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

Commit 87b4e50b authored by vandwalle's avatar vandwalle Committed by Android (Google) Code Review
Browse files

Merge "Don't crash when asked to enable an AP with a null SSID."

parents 786efab5 60a28c6c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -506,6 +506,12 @@ public class WifiConfiguration implements Parcelable {
     * @hide
     */
    public boolean isValid() {
        if (SSID == null)
            return false;

        if (allowedKeyManagement == null)
            return false;

        if (allowedKeyManagement.cardinality() > 1) {
            if (allowedKeyManagement.cardinality() != 2) {
                return false;