From f9d92af4c86e63b0d88ccb44e14ffa354077a586 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Thu, 7 Dec 2006 11:33:13 +0000 Subject: [PATCH] . Fix for Forms with no workflows in Sumbit Dialog git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4550 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/web/bean/wcm/SubmitDialog.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/java/org/alfresco/web/bean/wcm/SubmitDialog.java b/source/java/org/alfresco/web/bean/wcm/SubmitDialog.java index 55272b75ae..e3d5865cd3 100644 --- a/source/java/org/alfresco/web/bean/wcm/SubmitDialog.java +++ b/source/java/org/alfresco/web/bean/wcm/SubmitDialog.java @@ -383,7 +383,7 @@ public class SubmitDialog extends BaseDialogBean { if (hasAssociatedWorkflow(AVMNodeConverter.ToNodeRef(-1, node.getPath())) == false) { - // lookup if this item was created via a frm - then lookup the workflow defaults + // lookup if this item was created via a form - then lookup the workflow defaults // for that form and store into the list of available workflows NodeRef ref = AVMNodeConverter.ToNodeRef(-1, node.getPath()); if (this.nodeService.hasAspect(ref, WCMAppModel.ASPECT_FORM_INSTANCE_DATA)) @@ -391,7 +391,7 @@ public class SubmitDialog extends BaseDialogBean // found an XML form instance data file String formName = (String)this.nodeService.getProperty(ref, WCMAppModel.PROP_PARENT_FORM_NAME); FormWorkflowWrapper wrapper = this.formWorkflowMap.get(formName); - if (wrapper.Params != null) + if (wrapper != null && wrapper.Params != null) { // found a workflow with params attached to the form this.workflows.add(wrapper); @@ -419,7 +419,7 @@ public class SubmitDialog extends BaseDialogBean } /** - * Construct a workflow package as a layered directory over the users sandbox. The items for + * Construct a workflow package as a layered directory over the staging sandbox. The items for * submission are pushed into the layer and the package constructed around it. * * @return Reference to the package