make description optional as part of a Pipeline

This commit is contained in:
javanna 2015-11-12 15:45:35 +01:00 committed by Luca Cavanna
parent 75371b2381
commit 979fa81618
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public final class Pipeline {
public final static class Factory {
public Pipeline create(String id, Map<String, Object> config, Map<String, Processor.Factory> processorRegistry) throws IOException {
String description = ConfigurationUtils.readStringProperty(config, "description");
String description = ConfigurationUtils.readOptionalStringProperty(config, "description");
List<Processor> processors = new ArrayList<>();
@SuppressWarnings("unchecked")
List<Map<String, Map<String, Object>>> processorConfigs = (List<Map<String, Map<String, Object>>>) config.get("processors");