Null-check local location in trap overlay

Closes #7501

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-01-22 19:16:47 +01:00
parent 63ca800ff7
commit a7a42d5553

View File

@@ -143,6 +143,11 @@ public class TrapOverlay extends Overlay
}
net.runelite.api.Point loc = Perspective.localToCanvas(client, localLoc, client.getPlane());
if (loc == null)
{
return;
}
double timeLeft = 1 - trap.getTrapTimeRelative();
ProgressPieComponent pie = new ProgressPieComponent();