disallow null PathingCommandType

This commit is contained in:
Leijurv 2018-11-05 14:38:32 -08:00
parent 30408384c6
commit 23286dd8b8
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -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();
}
}
}