disallow null PathingCommandType
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user