]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewerData.java
Fixed regression caused by commit e6c0bd94.
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / componentTypeEditor / ComponentTypeViewerData.java
index 7fd6340cfbc859770bf889ed36fd5e2074f28367..d6b312426253fa33226aeb13f36505455ddea238 100644 (file)
@@ -309,9 +309,11 @@ public class ComponentTypeViewerData {
                 }
                 text.dispose();
 
-                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() {