From 0d0f89ee7fdf9fa2315ba4d797de202992ae7158 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Wed, 19 Apr 2017 16:36:32 +0300 Subject: [PATCH] Fixed regression caused by commit e6c0bd94. refs #7142 Change-Id: I8d15afab87f00b84ea3ecae22d1666c614418371 --- .../ui/componentTypeEditor/ComponentTypeViewerData.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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() { -- 2.47.1