Only try to close our connection object if it has successfully been
created in the first place. git-svn-id: https://samskivert.googlecode.com/svn/trunk@102 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -100,7 +100,9 @@ public class Session {
|
||||
((PreparedStatement)items.nextElement()).close();
|
||||
}
|
||||
preparedStmtHash.clear();
|
||||
connection.close();
|
||||
if (connection != null) {
|
||||
connection.close();
|
||||
}
|
||||
// }
|
||||
// catch (SQLException ex) { handleSQLException(ex); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user