diff --git a/src/main/java/baritone/bot/Settings.java b/src/main/java/baritone/bot/Settings.java index bc97a689..3f03ee53 100644 --- a/src/main/java/baritone/bot/Settings.java +++ b/src/main/java/baritone/bot/Settings.java @@ -55,6 +55,9 @@ public class Settings { private final Class klass; private Setting(T value) { + if (value == null) { + throw new IllegalArgumentException("Cannot determine value type class from null"); + } this.value = value; this.klass = (Class) value.getClass(); }