Nor a null one.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2150 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -220,7 +220,7 @@ public class SimpleRepository extends Repository
|
||||
} catch (PersistenceException pe) {
|
||||
// back out our changes if something got hosed
|
||||
try {
|
||||
if (supportsTransactions && !conn.isClosed()) {
|
||||
if (supportsTransactions && conn != null && !conn.isClosed()) {
|
||||
conn.rollback();
|
||||
}
|
||||
} catch (SQLException rbe) {
|
||||
|
||||
Reference in New Issue
Block a user