cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript JSCocoon.java
Date Tue, 02 Jul 2002 09:04:07 GMT
haul        2002/07/02 02:04:07

  Modified:    src/java/org/apache/cocoon/components/flow/javascript
                        JSCocoon.java
  Log:
  fix case when action returns null
  
  Revision  Changes    Path
  1.3       +1 -1      xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript/JSCocoon.java
  
  Index: JSCocoon.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript/JSCocoon.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JSCocoon.java	2 Jul 2002 08:32:07 -0000	1.2
  +++ JSCocoon.java	2 Jul 2002 09:04:07 -0000	1.3
  @@ -283,7 +283,7 @@
           // what should be done with the redirector ??
           // ignore it or call sendPage with it?
           // return JSCocoon.mapToObject(result);
  -        return new ScriptableMap(result);
  +        return (result!=null? new ScriptableMap(result) : null);
       }
   
       // Really needed? Java objects are accessible from JS...
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message