disallow null PathingCommandType
This commit is contained in:
parent
30408384c6
commit
23286dd8b8
@ -26,5 +26,8 @@ public class PathingCommand {
|
|||||||
public PathingCommand(Goal goal, PathingCommandType commandType) {
|
public PathingCommand(Goal goal, PathingCommandType commandType) {
|
||||||
this.goal = goal;
|
this.goal = goal;
|
||||||
this.commandType = commandType;
|
this.commandType = commandType;
|
||||||
|
if (commandType == null) {
|
||||||
|
throw new IllegalArgumentException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user