diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/chatcommands/ChatCommandsPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/chatcommands/ChatCommandsPlugin.java index 8c06945a66..7d877cb7aa 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/chatcommands/ChatCommandsPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/chatcommands/ChatCommandsPlugin.java @@ -481,10 +481,14 @@ public class ChatCommandsPlugin extends Plugin advLogLoaded = false; Widget adventureLog = client.getWidget(WidgetInfo.ADVENTURE_LOG); - Matcher advLogExploitsText = ADVENTURE_LOG_TITLE_PATTERN.matcher(adventureLog.getChild(ADV_LOG_EXPLOITS_TEXT_INDEX).getText()); - if (advLogExploitsText.find()) + + if (adventureLog != null) { - pohOwner = advLogExploitsText.group(1); + Matcher advLogExploitsText = ADVENTURE_LOG_TITLE_PATTERN.matcher(adventureLog.getChild(ADV_LOG_EXPLOITS_TEXT_INDEX).getText()); + if (advLogExploitsText.find()) + { + pohOwner = advLogExploitsText.group(1); + } } }