From decfec4875c0fb16714f4f7ad342e66e45a464b8 Mon Sep 17 00:00:00 2001 From: TomTom <93038247+AverageGithub@users.noreply.github.com> Date: Fri, 7 Jun 2024 19:05:56 +0200 Subject: [PATCH] Fix v4 --- src/main/java/me/ryzeon/transcripts/DiscordHtmlTranscripts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/ryzeon/transcripts/DiscordHtmlTranscripts.java b/src/main/java/me/ryzeon/transcripts/DiscordHtmlTranscripts.java index 1126784..1296a33 100644 --- a/src/main/java/me/ryzeon/transcripts/DiscordHtmlTranscripts.java +++ b/src/main/java/me/ryzeon/transcripts/DiscordHtmlTranscripts.java @@ -88,7 +88,7 @@ public InputStream generateFromMessages(Collection messages) throws IOE var referenceMessage = message.getReferencedMessage(); User author = referenceMessage.getAuthor(); Member member = channel.getGuild().getMember(author); - var color = Formatter.toHex(member.getColor() == null ? java.awt.Color.WHITE : member.getColor()); + var color = Formatter.toHex((member == null || member.getColor() == null) ? java.awt.Color.WHITE : member.getColor()); // System.out.println("REFERENCE MSG " + referenceMessage.getContentDisplay()); reference.html("