multiindicators: Null check

This commit is contained in:
sdburns1998
2019-07-07 15:51:09 +02:00
parent a88fa3b885
commit e6643bb468

View File

@@ -86,8 +86,11 @@ public class MultiIndicatorsOverlay extends Overlay
path = Geometry.transformPath(path, coords ->
{
Point point = Perspective.localToCanvas(client, new LocalPoint((int) coords[0], (int) coords[1]), client.getPlane());
coords[0] = point.getX();
coords[1] = point.getY();
if (point != null)
{
coords[0] = point.getX();
coords[1] = point.getY();
}
});
graphics.draw(path);