From b699cb2f7ad7f708b7334d33c74dc16e3ae46522 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Thu, 15 May 2025 17:48:19 +0700 Subject: [PATCH] fix: `*music testsong` throwing NPE because i didn't set the context --- build-number.txt | 2 +- .../java/me/chayapak1/chomens_bot/commands/MusicCommand.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build-number.txt b/build-number.txt index b3e3e2bf..81ee1922 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -3194 \ No newline at end of file +3195 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/commands/MusicCommand.java b/src/main/java/me/chayapak1/chomens_bot/commands/MusicCommand.java index a1e60df0..dcfa9d25 100644 --- a/src/main/java/me/chayapak1/chomens_bot/commands/MusicCommand.java +++ b/src/main/java/me/chayapak1/chomens_bot/commands/MusicCommand.java @@ -602,6 +602,8 @@ public class MusicCommand extends Command implements Listener { false ); + song.context = context; + int instrumentId = 0; int j = 0; for (int i = 0; i < 400; i++) {