From 36b81d924791d62b9bfcfe35aa79e14935202ebf Mon Sep 17 00:00:00 2001 From: Owain van Brakel Date: Fri, 8 Nov 2019 06:19:50 +0100 Subject: [PATCH] raidsthieving: NPE check (#1958) --- .../client/plugins/raidsthieving/RaidsThievingPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/raidsthieving/RaidsThievingPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/raidsthieving/RaidsThievingPlugin.java index 43221f2221..c273213ad6 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/raidsthieving/RaidsThievingPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/raidsthieving/RaidsThievingPlugin.java @@ -176,7 +176,7 @@ public class RaidsThievingPlugin extends Plugin if (obj.getId() == ObjectID.CHEST_29744 || obj.getId() == ObjectID.CHEST_29745) { ThievingChest chest = chests.get(obj.getWorldLocation()); - if (solver != null && chest.getChestId() != -1) + if (solver != null && chest != null && chest.getChestId() != -1) { chest.setEverOpened(true); solver.addGrubsChest(chest.getChestId());