mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 06:28:54 +00:00
fix: guard null signed command messages in channel registry (#755)
Co-authored-by: Oracle Public Cloud User <[email protected]>
This commit is contained in:
1 parent
6a0c97dd78
commit
b25c1f369d
2 files changed
+23
-3
No files matched your search
@@ -120,6 +120,10 @@ public final class VelocityChatListener extends ChatListenerInternal implements
|
||||
}
|
||||
|
||||
final @Nullable Component message = this.parseTags(sender, earlyChatEvent.message());
|
||||
if (message == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
final @Nullable CarbonChatEventImpl chatEvent = this.prepareAndEmitChatEvent(sender, message, null);
|
||||
|
||||
if (chatEvent == null || chatEvent.cancelled()) {
|
||||
|
||||
Reference in new issue
Block a user