groundmarkers: Fix NPE in drawTile

This commit is contained in:
Max Weber
2018-05-11 00:48:22 -06:00
parent 564f54a42b
commit 43c6cc8afe

View File

@@ -83,8 +83,13 @@ public class GroundMarkerOverlay extends Overlay
return;
}
Polygon poly = Perspective.getCanvasTilePoly(client, LocalPoint.fromWorld(client, point));
LocalPoint lp = LocalPoint.fromWorld(client, point);
if (lp == null)
{
return;
}
Polygon poly = Perspective.getCanvasTilePoly(client, lp);
if (poly == null)
{
return;