Added a NPE guard

This commit is contained in:
Marcin Grzejszczak
2019-09-16 08:38:24 +02:00
parent 5013103fcf
commit 0f635c32f7

View File

@@ -73,6 +73,9 @@ public class StreamFunctionProperties {
}
public void setDefinition(String definition) {
if (definition == null) {
return;
}
this.composeFrom = definition.startsWith("|");
this.composeTo = definition.endsWith("|");
this.definition = this.composeFrom ? definition.substring(1)