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:27:01 GMT
dims        01/08/14 04:27:01

  Modified:    src/org/apache/cocoon/transformation Tag: cocoon_20_branch
                        SQLTransformer.java
  Log:
  Patch from tom.klaasen@the-ecorp.com for NullPointerException in SQLTransformer
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.7   +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.5.2.6
  retrieving revision 1.5.2.7
  diff -u -r1.5.2.6 -r1.5.2.7
  --- SQLTransformer.java	2001/08/03 11:16:22	1.5.2.6
  +++ SQLTransformer.java	2001/08/14 11:27:01	1.5.2.7
  @@ -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.5.2.6 $ $Date: 2001/08/03 11:16:22 $ $Author: dims $
  + * @version CVS $Revision: 1.5.2.7 $ $Date: 2001/08/14 11:27:01 $ $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