Fix bug with queueThreadCount property default

This commit is contained in:
Josh Stark 2019-08-09 13:23:00 +01:00 committed by GitHub
parent d1aeb6e7e9
commit bd8db6650c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,14 @@ public class FleetProperties {
}
public int getQueueThreadCount() {
return Integer.parseInt(getStringProperty("fleet.queue.threads"));
final String numThreads = getStringProperty("fleet.queue.threads");
if (null == numThreads) {
return 0;
}
return Integer.parseInt(numThreads);
}
/**