cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r649977 - /cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/node/TransformNode.java
Date Sun, 20 Apr 2008 21:02:43 GMT
Author: reinhard
Date: Sun Apr 20 14:02:42 2008
New Revision: 649977

URL: http://svn.apache.org/viewvc?rev=649977&view=rev
Log:
COCOON-2198
TransformNode's src attribute must be optional (patch by Steven Dolg)

Modified:
    cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/node/TransformNode.java

Modified: cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/node/TransformNode.java
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/node/TransformNode.java?rev=649977&r1=649976&r2=649977&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/node/TransformNode.java
(original)
+++ cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/node/TransformNode.java
Sun Apr 20 14:02:42 2008
@@ -43,7 +43,9 @@
     @Override
     public InvocationResult invoke(final Invocation invocation) {
         Map<String, Object> parameters = new HashMap<String, Object>(this.getParameters());
-        parameters.put("source", invocation.resolve(this.src));
+        if (this.src != null) {
+            parameters.put("source", invocation.resolve(this.src));
+        }
         // install the component
         invocation.installComponent(TRANSFORMER_CATEGORY + this.type, parameters);
 



Mime
View raw message