Author: andreas
Date: Tue Feb 12 15:31:06 2008
New Revision: 627180
URL: http://svn.apache.org/viewvc?rev=627180&view=rev
Log:
Don't try to get documents from non-UUID site nodes in MultiWorkflow.
Modified:
lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/MultiWorkflow.java
Modified: lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/MultiWorkflow.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/MultiWorkflow.java?rev=627180&r1=627179&r2=627180&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/MultiWorkflow.java (original)
+++ lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/MultiWorkflow.java Tue Feb 12 15:31:06 2008
@@ -91,10 +91,12 @@
protected List getPreOrder(SiteNode node) throws SiteException {
List preOrder = new ArrayList();
- String[] langs = node.getLanguages();
- Arrays.sort(langs);
- for (int i = 0; i < langs.length; i++) {
- preOrder.add(node.getLink(langs[i]).getDocument());
+ if (node.getUuid() != null) {
+ String[] langs = node.getLanguages();
+ Arrays.sort(langs);
+ for (int i = 0; i < langs.length; i++) {
+ preOrder.add(node.getLink(langs[i]).getDocument());
+ }
}
SiteNode[] children = node.getChildren();
for (int i = 0; i < children.length; i++) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.