]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed regression caused by commit e6c0bd94. 29/429/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 19 Apr 2017 13:36:32 +0000 (16:36 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 19 Apr 2017 13:36:32 +0000 (16:36 +0300)
refs #7142

Change-Id: I8d15afab87f00b84ea3ecae22d1666c614418371

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() {