bug fixed closed Statement execute throw NPE

This commit is contained in:
wenshao
2012-11-25 15:32:23 +08:00
parent cfbb429f94
commit 7c0d280259
@@ -274,7 +274,10 @@ public class DruidPooledStatement extends PoolableWrapper implements Statement {
clearResultSet();
stmt.close();
this.closed = true;
conn.getConnectionHolder().removeTrace(this);
if (conn.getConnectionHolder() != null) {
conn.getConnectionHolder().removeTrace(this);
}
}
}