From 8c8a71666323853f2c775e891aa187f8c915a06f Mon Sep 17 00:00:00 2001 From: sdburns1998 Date: Sun, 7 Jul 2019 15:54:44 +0200 Subject: [PATCH] npchighlight: Null check --- .../client/plugins/npchighlight/NpcSceneOverlay.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/npchighlight/NpcSceneOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/npchighlight/NpcSceneOverlay.java index 900072d4e3..5f0d3100a2 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/npchighlight/NpcSceneOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/npchighlight/NpcSceneOverlay.java @@ -153,7 +153,11 @@ public class NpcSceneOverlay extends Overlay { case SOUTH_WEST_TILE: LocalPoint lp1 = LocalPoint.fromWorld(client, actor.getWorldLocation()); - Polygon tilePoly1 = Perspective.getCanvasTilePoly(client, lp1); + Polygon tilePoly1 = null; + if (lp1 != null) + { + tilePoly1 = Perspective.getCanvasTilePoly(client, lp1); + } renderPoly(graphics, color, tilePoly1); break;