Add null-check for target tile in ObjectIndicatorsPlugin (#7115)

Sometimes there is no target tile (e.g climb-down ladders).
This commit is contained in:
DannysPVM
2018-12-30 18:31:25 -06:00
committed by Tomas Slusny
parent 5a7f1786a4
commit 4f57f51b76

View File

@@ -257,6 +257,11 @@ public class ObjectIndicatorsPlugin extends Plugin implements KeyListener
private TileObject findTileObject(Tile tile, int id)
{
if (tile == null)
{
return null;
}
final GameObject[] tileGameObjects = tile.getGameObjects();
for (GameObject object : tileGameObjects)