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

Commit d710627c authored by Holly Jiuyu Sun's avatar Holly Jiuyu Sun Committed by android-build-merger
Browse files

Merge "Fix the assumption in GetEuiccProfileInfoListResult." am: ee7a7f63

am: 653b7f60

Change-Id: I3affc2649067842c6b7a082ac11e28e34da836d9
parents 23984e29 653b7f60
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -97,9 +97,10 @@ public final class GetEuiccProfileInfoListResult implements Parcelable {
        if (this.result == EuiccService.RESULT_OK) {
            this.mProfiles = profiles;
        } else {
            if (profiles != null) {
            // For error case, profiles is either null or 0 size.
            if (profiles != null && profiles.length > 0) {
                throw new IllegalArgumentException(
                        "Error result with non-null profiles: " + result);
                        "Error result with non-empty profiles: " + result);
            }
            this.mProfiles = null;
        }