diff --git a/src/main/java/com/wynntils/modules/chat/overlays/ChatOverlay.java b/src/main/java/com/wynntils/modules/chat/overlays/ChatOverlay.java index d1513c966..51cce3b91 100644 --- a/src/main/java/com/wynntils/modules/chat/overlays/ChatOverlay.java +++ b/src/main/java/com/wynntils/modules/chat/overlays/ChatOverlay.java @@ -483,13 +483,18 @@ public void deleteChatLine(int id) { }); int[] count = { 0 }; - currentTab.getCurrentMessages().removeIf(chatline -> { - if (chatline.getChatLineID() == id) { - ++count[0]; - return true; - } - return false; - }); + try { + currentTab.getCurrentMessages().removeIf(chatline -> { + if (chatline.getChatLineID() == id) { + ++count[0]; + return true; + } + return false; + }); + } catch (Exception ex) { + ex.printStackTrace(); + return; + } if (scrollPos > 0 && getChatOpen() && count[0] > 0) { isScrolled = true;