From 92b3ac93d0b37866f1aebd83ce23babd5ac54c13 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 14 Aug 2018 15:24:23 -0700 Subject: [PATCH] check --- src/main/java/baritone/bot/Settings.java | 3 +++ 1 file changed, 3 insertions(+) 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(); }