From 62375ff2175ca17c5dc4e5d58768024e5326f11f Mon Sep 17 00:00:00 2001 From: freya02 <41875020+freya022@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:18:16 +0200 Subject: [PATCH] Add missing check --- .../jda/internal/managers/SoundboardSoundManagerImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/dv8tion/jda/internal/managers/SoundboardSoundManagerImpl.java b/src/main/java/net/dv8tion/jda/internal/managers/SoundboardSoundManagerImpl.java index d18d87d9ae..f1fcb9ae73 100644 --- a/src/main/java/net/dv8tion/jda/internal/managers/SoundboardSoundManagerImpl.java +++ b/src/main/java/net/dv8tion/jda/internal/managers/SoundboardSoundManagerImpl.java @@ -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;