=== modified file 'src/com/mysql/jdbc/ResultSetImpl.java' --- src/com/mysql/jdbc/ResultSetImpl.java 2012-06-19 08:16:53 +0000 +++ src/com/mysql/jdbc/ResultSetImpl.java 2012-12-03 21:45:17 +0000 @@ -7324,12 +7324,9 @@ * if an error occurs */ public void realClose(boolean calledExplicitly) throws SQLException { - MySQLConnection locallyScopedConn; - - try { - locallyScopedConn = checkClosed(); - } catch (SQLException sqlEx) { - return; // already closed + MySQLConnection locallyScopedConn = this.connection; + if (locallyScopedConn == null) { + return; // already closed } synchronized (locallyScopedConn) {