Merge "Fix an exception caused by incorrect data handling" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
402334a09b
@ -721,7 +721,13 @@ public class WifiEnterpriseConfig implements Parcelable {
|
|||||||
String value = mFields.get(key);
|
String value = mFields.get(key);
|
||||||
// Uninitialized or known to be empty after reading from supplicant
|
// Uninitialized or known to be empty after reading from supplicant
|
||||||
if (TextUtils.isEmpty(value) || EMPTY_VALUE.equals(value)) return "";
|
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
|
/** Set a value with an optional prefix at key
|
||||||
|
Reference in New Issue
Block a user