X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fproperty%2FBooleanPropertyManipulator.java;h=7d9b65b6e48dc1d578d66c78d34fea65ab534183;hb=508f88f73c8ca0b7537005d313b3c970877a574c;hp=a4534a4741debdd444468bd55710d530da953c08;hpb=289aaab900078ef56efc8779e4b15830e472149e;p=simantics%2F3d.git diff --git a/org.simantics.g3d/src/org/simantics/g3d/property/BooleanPropertyManipulator.java b/org.simantics.g3d/src/org/simantics/g3d/property/BooleanPropertyManipulator.java index a4534a47..7d9b65b6 100644 --- a/org.simantics.g3d/src/org/simantics/g3d/property/BooleanPropertyManipulator.java +++ b/org.simantics.g3d/src/org/simantics/g3d/property/BooleanPropertyManipulator.java @@ -42,7 +42,9 @@ public class BooleanPropertyManipulator implements PropertyManipulator { if (editMode) return editValue; try { - return provider.getValue(input).toString(); + Object value = provider.getValue(input); + if (value == null) return null; + return value.toString(); } catch (Exception e) { return null; }