multiindicators: Null check
This commit is contained in:
@@ -86,8 +86,11 @@ public class MultiIndicatorsOverlay extends Overlay
|
|||||||
path = Geometry.transformPath(path, coords ->
|
path = Geometry.transformPath(path, coords ->
|
||||||
{
|
{
|
||||||
Point point = Perspective.localToCanvas(client, new LocalPoint((int) coords[0], (int) coords[1]), client.getPlane());
|
Point point = Perspective.localToCanvas(client, new LocalPoint((int) coords[0], (int) coords[1]), client.getPlane());
|
||||||
coords[0] = point.getX();
|
if (point != null)
|
||||||
coords[1] = point.getY();
|
{
|
||||||
|
coords[0] = point.getX();
|
||||||
|
coords[1] = point.getY();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
graphics.draw(path);
|
graphics.draw(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user