Browse Source

fixed NullPointerException in <sql>

Submitted by:	Jeff Martin <jeff.martin@synamic.co.uk>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267867 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
4290fbcebd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/SQLExec.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/SQLExec.java View File

@@ -219,14 +219,14 @@ public class SQLExec extends Task {
}
} catch(IOException e){
if (!autocommit) {
if (!autocommit && conn != null) {
try {
conn.rollback();
} catch (SQLException ex) {}
}
throw new BuildException(e, location);
} catch(SQLException e){
if (!autocommit) {
if (!autocommit && conn != null) {
try {
conn.rollback();
} catch (SQLException ex) {}


Loading…
Cancel
Save