From 246f15506ee273c2418389a69b2264d845296917 Mon Sep 17 00:00:00 2001 From: sdburns1998 Date: Sun, 7 Jul 2019 05:18:07 +0200 Subject: [PATCH] grounditems: Null check --- .../client/plugins/grounditems/GroundItemsOverlay.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsOverlay.java index 82fa52a8e4..40b8a7f97c 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsOverlay.java @@ -352,7 +352,11 @@ public class GroundItemsOverlay extends Overlay plugin.setHighlightBoxBounds(new SimpleEntry<>(itemHighlightBox, item)); } - boolean topItem = topGroundItem.equals(item); + boolean topItem = false; + if (topGroundItem != null) + { + topItem = topGroundItem.equals(item); + } // Draw background if hovering if (topItem && (mouseInBox || mouseInHiddenBox || mouseInHighlightBox))