From dcbcbc79f49722fc0db815290284db9427b11025 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 24 May 2020 01:45:13 +1200 Subject: [PATCH] Add a quick null check --- .../libraryaddict/disguise/utilities/sounds/SoundGroup.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/sounds/SoundGroup.java b/src/main/java/me/libraryaddict/disguise/utilities/sounds/SoundGroup.java index 86b3b4c3..84e30e82 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/sounds/SoundGroup.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/sounds/SoundGroup.java @@ -40,6 +40,10 @@ public class SoundGroup { throw new IllegalArgumentException(); } + if (sound == null) { + return; + } + disguiseSounds.put(sound, type); }