cziegeler 02/04/29 01:07:36
Modified: src/java/org/apache/cocoon/components/source/impl
SitemapSource.java
src/java/org/apache/cocoon/components/treeprocessor/sitemap
SitemapLanguage.java
Log:
Workaround for an empty role parameter
Revision Changes Path
1.5 +1 -2
xml-cocoon2/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java
Index: SitemapSource.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SitemapSource.java 29 Apr 2002 07:36:03 -0000 1.4
+++ SitemapSource.java 29 Apr 2002 08:07:36 -0000 1.5
@@ -95,7 +95,7 @@
* Description of a source which is defined by a pipeline.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version CVS $Id: SitemapSource.java,v 1.4 2002/04/29 07:36:03 cziegeler Exp $
+ * @version CVS $Id: SitemapSource.java,v 1.5 2002/04/29 08:07:36 cziegeler Exp $
*/
public final class SitemapSource
@@ -401,7 +401,6 @@
// Preserve original exception
throw e;
} catch (Exception e) {
- e.printStackTrace();
throw new SAXException("Exception during processing of "
+ this.systemId, e);
} finally {
1.6 +5 -1
xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java
Index: SitemapLanguage.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SitemapLanguage.java 22 Apr 2002 13:44:23 -0000 1.5
+++ SitemapLanguage.java 29 Apr 2002 08:07:36 -0000 1.6
@@ -82,7 +82,7 @@
* The tree builder for the sitemap language.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Sylvain Wallez</a>
- * @version CVS $Id: SitemapLanguage.java,v 1.5 2002/04/22 13:44:23 cziegeler Exp $
+ * @version CVS $Id: SitemapLanguage.java,v 1.6 2002/04/29 08:07:36 cziegeler Exp $
*/
public class SitemapLanguage extends DefaultTreeBuilder {
@@ -226,6 +226,10 @@
*/
public Collection getViewsForStatement(String role, String hint, Configuration
statement) throws Exception {
+ if ( role == null || role.trim().equals("") ) {
+ // FIXME !!
+ return null;
+ }
String statementLabels = statement.getAttribute("label", null);
if (this.isBuildingView) {
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]