From da7836ef4008c742ae62af3ed7c3218492456adf Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Fri, 24 Nov 2017 11:57:52 +0200 Subject: [PATCH] Fix NPE when user inputs empty string fixes #7640 Change-Id: I44edaedd18185594965e2b2ce04b4931f3d6c724 --- .../simantics/browsing/ui/nattable/NatTableGraphExplorer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/NatTableGraphExplorer.java b/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/NatTableGraphExplorer.java index 3bb05553d..aa384ad1d 100644 --- a/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/NatTableGraphExplorer.java +++ b/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/NatTableGraphExplorer.java @@ -1858,10 +1858,9 @@ public class NatTableGraphExplorer extends GraphExplorerImplBase implements Grap if (modifier == null) return false; - String err = modifier.isValid(newValue.toString()); + String err = modifier.isValid(newValue != null ? newValue.toString() : ""); if (err == null) return true; - modifier.isValid(newValue.toString()); throw new ValidationFailedException(err); } } -- 2.47.1