From ee62eae519f26a99f8390a9c4e10623644652da4 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 15:52:43 +0100 Subject: [PATCH] fix button interactions --- .../fascinated/bat/features/tmdb/command/MovieSubCommand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/cc/fascinated/bat/features/tmdb/command/MovieSubCommand.java b/src/main/java/cc/fascinated/bat/features/tmdb/command/MovieSubCommand.java index 6c3be71..de7b2a1 100644 --- a/src/main/java/cc/fascinated/bat/features/tmdb/command/MovieSubCommand.java +++ b/src/main/java/cc/fascinated/bat/features/tmdb/command/MovieSubCommand.java @@ -106,6 +106,9 @@ public class MovieSubCommand extends BatCommand implements EventListener { @Override public void onButtonInteraction(BatGuild guild, @NonNull BatUser user, @NonNull ButtonInteractionEvent event) { + if (guild == null) { + return; + } Map params = userCommands.get(user.getId()); if (params == null) { return;