diff --git a/core/src/main/java/hudson/model/Slave.java b/core/src/main/java/hudson/model/Slave.java index bda179cee1eafd6858818875ae96d72011698b3b..5c4a9ccc3413e21c0508fef1ae02a85219251fde 100644 --- a/core/src/main/java/hudson/model/Slave.java +++ b/core/src/main/java/hudson/model/Slave.java @@ -103,6 +103,9 @@ public final class Slave implements Node, Serializable { // throw new FormException("Invalid slave configuration for " + name + ". No such directory exists: " + localFS, null); if (remoteFS.equals("")) throw new FormException("Invalid slave configuration for " + name + ". No remote directory given", null); + + if (numExecutors<=0) + throw new FormException("Invalid slave configuration for " + name + ". Invalid # of executors.", null); } public String getCommand() {