refs #7142
Change-Id: I8d15afab87f00b84ea3ecae22d1666c614418371
- String error = validator.apply(Simantics.getSession(), componentType, propertyInfo.resource, newValue);
- if (error != null)
- return;
+ if (validator != null) {
+ String error = validator.apply(Simantics.getSession(), componentType, propertyInfo.resource, newValue);
+ if (error != null)
+ return;
+ }
if (writer != null) {
Simantics.getSession().async(new WriteRequest() {
if (writer != null) {
Simantics.getSession().async(new WriteRequest() {