]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/g3d/property/DoubleArrayPropertyManipulator2.java
Allow property editing with just a single mouse click
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / property / DoubleArrayPropertyManipulator2.java
index 82e9a0622b56be02123b27d33889f85af2968236..6b7a2e115dbe833632888cc85024a4a2edd22ee0 100644 (file)
@@ -51,6 +51,8 @@ public class DoubleArrayPropertyManipulator2 implements PropertyManipulator {
                }
                try {
                    double[] val = getValue();
+                   if (val == null)
+                       return null;
                    if (val.length == i)
                        return "New";
             if (val.length < i)