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

Commit 8b67189c authored by Evan Chen's avatar Evan Chen Committed by Automerger Merge Worker
Browse files

Limits the display name to 1024 characters am: c770b9ef

parents 35ffe93f c770b9ef
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -419,6 +419,11 @@ public final class AssociationRequest implements Parcelable {
        public Builder setDisplayName(@NonNull CharSequence displayName) {
            checkNotUsed();
            mDisplayName = requireNonNull(displayName);
            if (displayName.length() > 1024) {
                throw new IllegalArgumentException("Length of the display name must be at most "
                        + "1024 characters");
            }

            return this;
        }