Deal with attribute withotu default value
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 22 Oct 2012 10:42:54 +0000 (10:42 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 22 Oct 2012 10:42:54 +0000 (10:42 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5630 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/editors/ProcessBuilderPage.java

index 958be82768183a694ae30d1b508df16bdfd7b02b..6e30a48e16d3683a8ea04555fad7e3545129038b 100644 (file)
@@ -369,9 +369,10 @@ public class ProcessBuilderPage extends FormPage implements SlcNames {
                                // override with flow value
                                if (flowNode.hasNode(attrName)) {
                                        // assuming this is a primitive
-                                       realizedAttrNode.setProperty(SLC_VALUE,
-                                                       flowNode.getNode(attrName).getProperty(SLC_VALUE)
-                                                                       .getValue());
+                                       Node attrNode = flowNode.getNode(attrName);
+                                       if (attrNode.hasProperty(SLC_VALUE))
+                                               realizedAttrNode.setProperty(SLC_VALUE, attrNode
+                                                               .getProperty(SLC_VALUE).getValue());
                                }
                        }