svn commit: r753247 - /lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/test/org/apache/lenya/cms/linking/LinkTest.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Fri Mar 13 13:44:00 2009
New Revision: 753247

URL: http://svn.apache.org/viewvc?rev=753247&view=rev
Log:
Dont choke if the default pub doesn't contain any documents.

Modified:
    lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/test/org/apache/lenya/cms/linking/LinkTest.java

Modified: lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/test/org/apache/lenya/cms/linking/LinkTest.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/test/org/apache/lenya/cms/linking/LinkTest.java?rev=753247&r1=753246&r2=753247&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/test/org/apache/lenya/cms/linking/LinkTest.java (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/test/org/apache/lenya/cms/linking/LinkTest.java Fri Mar 13 13:44:00 2009
@@ -85,6 +85,7 @@
         final Document[] docs = defaultPub.getArea(Publication.AUTHORING_AREA).getDocuments();
         if (docs.length == 0) {
             getLogger().warn("To run this test, the default publication has to contain documents.");
+            return;
         }
 
         final Document source = docs[0];
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.