Null-check local location in trap overlay
Closes #7501 Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user