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

Commit 402334a0 authored by Vinit Deshapnde's avatar Vinit Deshapnde Committed by Android (Google) Code Review
Browse files

Merge "Fix an exception caused by incorrect data handling" into klp-dev

parents 962a7093 dda5a715
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -721,7 +721,13 @@ public class WifiEnterpriseConfig implements Parcelable {
        String value = mFields.get(key);
        // Uninitialized or known to be empty after reading from supplicant
        if (TextUtils.isEmpty(value) || EMPTY_VALUE.equals(value)) return "";
        return removeDoubleQuotes(value).substring(prefix.length());

        value = removeDoubleQuotes(value);
        if (value.startsWith(prefix)) {
            return value.substring(prefix.length());
        } else {
            return value;
        }
    }

    /** Set a value with an optional prefix at key