diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2022-11-09 13:24:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 14:24:33 +0100 |
commit | f997510fd8d522756aa6fff2f905bfe4f5c3c8e3 (patch) | |
tree | e4b42bb63d77e13ee2341bc0920d9453da008451 | |
parent | 1773ed4e9e58f1851796f2a9a6af1f93618b89ef (diff) | |
download | NotEnoughUpdates-f997510fd8d522756aa6fff2f905bfe4f5c3c8e3.tar.gz NotEnoughUpdates-f997510fd8d522756aa6fff2f905bfe4f5c3c8e3.tar.bz2 NotEnoughUpdates-f997510fd8d522756aa6fff2f905bfe4f5c3c8e3.zip |
fix npe in the chat thingy (#431)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java index fcd320fa..6dd6b6b7 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java @@ -127,7 +127,7 @@ public class ChatListener { boolean partyOrGuildChat = false; List<IChatComponent> siblings = chatComponent.getSiblings(); - if (!siblings.isEmpty() && siblings.get(0).getChatStyle().getChatClickEvent().getValue().startsWith("/viewprofile")) { + if (!siblings.isEmpty() && siblings.get(0).getChatStyle() != null && siblings.get(0).getChatStyle().getChatClickEvent() != null && siblings.get(0).getChatStyle().getChatClickEvent().getValue().startsWith("/viewprofile")) { startsWith = "/viewprofile"; partyOrGuildChat = true; } else { |