From: Tuukka Lehtonen Date: Wed, 19 Apr 2017 13:53:21 +0000 (+0300) Subject: Merge "Fixed regression caused by commit e6c0bd94." X-Git-Tag: v1.29.0~99 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=c1278c0248e5f2f93c1debb83c7ba5c8fd296b4b;hp=f3cb82b78f5e7ab51c8227f978e29011a85354df;p=simantics%2Fplatform.git Merge "Fixed regression caused by commit e6c0bd94." --- diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewerData.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewerData.java index 7fd6340cf..d6b312426 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewerData.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewerData.java @@ -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() {