]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Merge "Fixed regression caused by cherry-pick 31000619." into release/1.28.0
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 19 Apr 2017 14:29:36 +0000 (17:29 +0300)
committerGerrit Code Review <gerrit2@www.simantics.org>
Wed, 19 Apr 2017 14:29:36 +0000 (17:29 +0300)
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() {