Fix a NullPointerException in RoomUnitWalkToRoomUnit

This commit is contained in:
Alejandro 2019-05-18 18:42:11 +03:00
parent 0fbebc5ac8
commit e15ea51c63

View File

@ -108,7 +108,7 @@ public class RoomUnitWalkToRoomUnit implements Runnable
this.walker.setGoalLocation(this.goalTile);
if (this.walker.getPath().isEmpty())
if (this.walker.getPath().isEmpty() && this.failedReached != null)
{
for(Runnable r : this.failedReached)
{