cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/transformation SQLTransformer.java
Date Tue, 14 Aug 2001 11:25:08 GMT
dims        01/08/14 04:25:08

  Modified:    src/org/apache/cocoon/transformation SQLTransformer.java
  Log:
  Patch from tom.klaasen@the-ecorp.com for NullPointerException in SQLTransformer
  
  Revision  Changes    Path
  1.14      +8 -3      xml-cocoon2/src/org/apache/cocoon/transformation/SQLTransformer.java
  
  Index: SQLTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/transformation/SQLTransformer.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- SQLTransformer.java	2001/08/03 11:16:10	1.13
  +++ SQLTransformer.java	2001/08/14 11:25:08	1.14
  @@ -57,7 +57,7 @@
    * @author <a href="mailto:giacomo.pati@pwr.ch">Giacomo Pati</a>
    *         (PWR Organisation & Entwicklung)
    * @author <a href="mailto:sven.beauprez@the-ecorp.com">Sven Beauprez</a>
  - * @version CVS $Revision: 1.13 $ $Date: 2001/08/03 11:16:10 $ $Author: dims $
  + * @version CVS $Revision: 1.14 $ $Date: 2001/08/14 11:25:08 $ $Author: dims $
    */
   
   public class SQLTransformer extends AbstractTransformer implements Composable, Recyclable,
Disposable, Configurable {
  @@ -910,8 +910,13 @@
   
           protected void close() throws SQLException {
               try {
  -                if (rs != null)
  -                    rs.close();
  +                if (rs != null) {
  +                    try {
  +                        rs.close();
  +                    } catch (NullPointerException e) {
  +                        getTheLogger().debug("NullPointer while closing the resultset.",
e);
  +                    }
  +                }
                   if (pst != null)
                       pst.close();
                   if (cst != null)
  
  
  

----------------------------------------------------------------------
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