ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Martin <jeff.mar...@synamic.co.uk>
Subject [PATCH] Fixes null pointer exception in SQLExec
Date Wed, 02 Aug 2000 12:10:18 GMT
If an execption is thrown when establishing the jdbc connection the conn
object is not initialised and so should not be rolledback

Index: src/main/org/apache/tools/ant/taskdefs/SQLExec.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/SQLExec.j
ava,v
retrieving revision 1.4
diff -r1.4 SQLExec.java
224c224
<                     conn.rollback();
---
>                     if(conn!=null)conn.rollback();
231c231
<                     conn.rollback();
---
>                     if(conn!=null)conn.rollback();

Mime
View raw message