From 23286dd8b8d1ceaf6fd26e6247c365456f0a38e8 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Mon, 5 Nov 2018 14:38:32 -0800 Subject: [PATCH] disallow null PathingCommandType --- src/api/java/baritone/api/process/PathingCommand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/java/baritone/api/process/PathingCommand.java b/src/api/java/baritone/api/process/PathingCommand.java index f5b39501..082928b3 100644 --- a/src/api/java/baritone/api/process/PathingCommand.java +++ b/src/api/java/baritone/api/process/PathingCommand.java @@ -26,5 +26,8 @@ public class PathingCommand { public PathingCommand(Goal goal, PathingCommandType commandType) { this.goal = goal; this.commandType = commandType; + if (commandType == null) { + throw new IllegalArgumentException(); + } } }