From c1306ab8bfae816712a752139c016262ea384545 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 5 Aug 2018 17:20:55 -0400 Subject: [PATCH] bugfix --- src/main/java/baritone/bot/behavior/impl/PathingBehavior.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java index 062d14b44..471a02dfb 100644 --- a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java +++ b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java @@ -28,6 +28,9 @@ public class PathingBehavior extends Behavior { } public IPath getPath() { + if (current == null) { + return null; + } return current.getPath(); } }