Added a NPE guard
This commit is contained in:
@@ -73,6 +73,9 @@ public class StreamFunctionProperties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setDefinition(String definition) {
|
public void setDefinition(String definition) {
|
||||||
|
if (definition == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.composeFrom = definition.startsWith("|");
|
this.composeFrom = definition.startsWith("|");
|
||||||
this.composeTo = definition.endsWith("|");
|
this.composeTo = definition.endsWith("|");
|
||||||
this.definition = this.composeFrom ? definition.substring(1)
|
this.definition = this.composeFrom ? definition.substring(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user