From e15ea51c63d28504f2909f064abed7a033789b83 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Sat, 18 May 2019 18:42:11 +0300 Subject: [PATCH] Fix a NullPointerException in RoomUnitWalkToRoomUnit --- .../eu/habbo/threading/runnables/RoomUnitWalkToRoomUnit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/threading/runnables/RoomUnitWalkToRoomUnit.java b/src/main/java/com/eu/habbo/threading/runnables/RoomUnitWalkToRoomUnit.java index 75f4c74e..3e233e96 100644 --- a/src/main/java/com/eu/habbo/threading/runnables/RoomUnitWalkToRoomUnit.java +++ b/src/main/java/com/eu/habbo/threading/runnables/RoomUnitWalkToRoomUnit.java @@ -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) {