Skip to content

Commit

Permalink
Fix NPE error when MySQLComStmtExecuteExecutor and MySQLComFieldListP…
Browse files Browse the repository at this point in the history
…acketExecutor executing close (#33826)
  • Loading branch information
jiangML authored Dec 5, 2024
1 parent 74ea914 commit 55eaa39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ private BinaryRow createBinaryRow(final QueryResponseRow queryResponseRow) {

@Override
public void close() throws SQLException {
proxyBackendHandler.close();
if (null != proxyBackendHandler) {
proxyBackendHandler.close();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ private Collection<DatabasePacket> createColumnDefinition41Packets(final String

@Override
public void close() throws SQLException {
databaseConnector.close();
if (null != databaseConnector) {
databaseConnector.close();
}
}
}

0 comments on commit 55eaa39

Please sign in to comment.