Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Here is related code:
Connection conn = null; boolean committed = false; try { conn = getConnection(); ... } finally { if (!committed) conn.rollback(); conn.close(); }
If getConnection() throws exception, conn.rollback() would be called - leading to NPE.