Commits

Anonymous committed dff3396

Fix WF-448

  • Participants
  • Parent commits bac26c4

Comments (0)

Files changed (1)

File src/designer/com/opensymphony/workflow/designer/editor/FunctionEditor.java

     {
       return null;
     }
-
   }
 
   public void modify(FunctionDescriptor func)
   {
     ConfigFunctionDescriptor function;
 
-    if(func.getName() != null)
+    if(func.getName() != null && (getModel().getPalette().getPrefunction(func.getName()) != null))
     {
 	    function = new ConfigFunctionDescriptor(getModel().getPalette().getPrefunction(func.getName()));
     }
     {
       func.getArgs().putAll(function.getArgs());
     }
-
   }
 
   private ConfigFunctionDescriptor editFunction(ConfigFunctionDescriptor config, Component parent)
     return config;
   }
 
-  abstract protected AbstractDescriptor getParent();
+  protected abstract AbstractDescriptor getParent();
 
-	abstract protected ConfigFunctionDescriptor getFunction();
+  protected abstract ConfigFunctionDescriptor getFunction();
 }