multiindicators: Null check
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user