aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2022-11-08 12:43:16 +0900
committerGitHub <noreply@github.com>2022-11-08 12:43:16 +0900
commit4ab5c2f66b0592600d14486ecf4d1628e6c856dc (patch)
treee7a7430e8416d8d1215fd2e6d789271f06bbdd05
parenta51fda82aec96fbb1597e04e9919caaef500c2eb (diff)
downloadSkyblock-Dungeons-Guide-4ab5c2f66b0592600d14486ecf4d1628e6c856dc.tar.gz
Skyblock-Dungeons-Guide-4ab5c2f66b0592600d14486ecf4d1628e6c856dc.tar.bz2
Skyblock-Dungeons-Guide-4ab5c2f66b0592600d14486ecf4d1628e6c856dc.zip
Fix NPE in RoomProcessor on refresh line (#77)
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java
index 22cdb20c..b4df434f 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java
@@ -339,6 +339,8 @@ public class GeneralRoomProcessor implements RoomProcessor {
searchForNextTarget();
} else if (FeatureRegistry.SECRET_CREATE_REFRESH_LINE.getKeybind() == keyInputEvent.getKey() && FeatureRegistry.SECRET_CREATE_REFRESH_LINE.isEnabled()) {
ActionRoute actionRoute = getBestFit(0);
+ // Because no route found!
+ if (actionRoute == null) return;
// actually do force refresh because of force freeze pathfind
if (actionRoute.getCurrentAction() instanceof ActionMove) {
ActionMove ac = (ActionMove) actionRoute.getCurrentAction();