Merge "Fix the assumption in GetEuiccProfileInfoListResult." am: ee7a7f63a9
am: 653b7f6059
Change-Id: I3affc2649067842c6b7a082ac11e28e34da836d9
This commit is contained in:
@@ -97,9 +97,10 @@ public final class GetEuiccProfileInfoListResult implements Parcelable {
|
|||||||
if (this.result == EuiccService.RESULT_OK) {
|
if (this.result == EuiccService.RESULT_OK) {
|
||||||
this.mProfiles = profiles;
|
this.mProfiles = profiles;
|
||||||
} else {
|
} else {
|
||||||
if (profiles != null) {
|
// For error case, profiles is either null or 0 size.
|
||||||
|
if (profiles != null && profiles.length > 0) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
"Error result with non-null profiles: " + result);
|
"Error result with non-empty profiles: " + result);
|
||||||
}
|
}
|
||||||
this.mProfiles = null;
|
this.mProfiles = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user