From 7443e4378718558d9b80253eadd58971c12c230e Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Mon, 22 Oct 2012 10:42:54 +0000 Subject: [PATCH] Deal with attribute withotu default value git-svn-id: https://svn.argeo.org/slc/trunk@5630 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- .../argeo/slc/client/ui/editors/ProcessBuilderPage.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/editors/ProcessBuilderPage.java b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/editors/ProcessBuilderPage.java index 958be8276..6e30a48e1 100644 --- a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/editors/ProcessBuilderPage.java +++ b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/editors/ProcessBuilderPage.java @@ -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()); } } -- 2.39.5