From 3d19fae6b8070f9ddad4c0ba8fceaad334be5d14 Mon Sep 17 00:00:00 2001 From: Tueem Date: Thu, 19 Dec 2024 18:34:00 +0100 Subject: [PATCH] fix null issue in InteractionRegistry --- .../net/tomatentum/marinara/registry/InteractionRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java b/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java index 8bb8612..18e04b6 100644 --- a/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java +++ b/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java @@ -56,8 +56,8 @@ public class InteractionRegistry { logger.debug("Added Executable Command {}{}{} for registration", def.applicationCommand().name(), - def.subCommandGroup().name().isBlank() ? "" : "." + def.subCommandGroup().name(), - def.subCommand().name().isBlank() ? "" : "." + def.subCommand().name() + def.subCommandGroup() == null ? "" : "." + def.subCommandGroup().name(), + def.subCommand() == null ? "" : "." + def.subCommand().name() ); });