fix non null
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
This commit is contained in:
parent
6698b7c656
commit
bd9f4ef971
@ -86,6 +86,9 @@ public class DiscordMessageService extends ListenerAdapter {
|
||||
|
||||
BatGuild guild = guildService.getGuild(event.getGuild().getId());
|
||||
BatUser user = userService.getUser(event.getAuthor().getId());
|
||||
if (guild == null || user == null) {
|
||||
return;
|
||||
}
|
||||
for (EventListener listener : EventService.LISTENERS) {
|
||||
listener.onGuildMessageEdit(guild, user, oldMessage, newMessage, event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user