From dd33aee6b0109afea767af57f2975b4098a4afeb Mon Sep 17 00:00:00 2001 From: Greg Gibeling Date: Fri, 26 Apr 2024 07:42:22 -0700 Subject: [PATCH] Add the name of the argument causing an NPE --- .../gearbox/command/converter/dumb/HDumbCommandConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb-command/src/main/java/com/g2forge/gearbox/command/converter/dumb/HDumbCommandConverter.java b/gb-command/src/main/java/com/g2forge/gearbox/command/converter/dumb/HDumbCommandConverter.java index f35531d..56da87d 100644 --- a/gb-command/src/main/java/com/g2forge/gearbox/command/converter/dumb/HDumbCommandConverter.java +++ b/gb-command/src/main/java/com/g2forge/gearbox/command/converter/dumb/HDumbCommandConverter.java @@ -30,7 +30,7 @@ public static void set(ArgumentContext argumentContext, IMethodArgument argum if (named != null) { if (value == null) { if (named.skipNull()) return; - else throw new NullPointerException("Named argument values cannot be null (though they can be the string spelling \"null\")!"); + else throw new NullPointerException("Named argument values cannot be null (though they can be the string spelling \"null\"), please check the value for \"" + named.value() + "\"!"); } if (!named.joined()) { command.argument(named.value());