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("