Skip to content

Commit

Permalink
Add missing check
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Oct 18, 2024
1 parent 50012d9 commit 62375ff
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public SoundboardSoundManagerImpl reset()
@Override
public SoundboardSoundManagerImpl setName(@Nonnull String name)
{
Checks.notNull(name, "name");
Checks.check(name.length() >= 2 && name.length() <= 32, "Name must be between 2 and 32 characters");
this.name = name;
set |= NAME;
Expand Down

0 comments on commit 62375ff

Please sign in to comment.