We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb73106 commit 07ee6fbCopy full SHA for 07ee6fb
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java
@@ -2889,8 +2889,9 @@ final void doExecutePreparedStatementBatch(PrepStmtBatchExecCmd batchCommand) th
2889
if (null == batchCommand.batchException)
2890
batchCommand.batchException = e;
2891
2892
- if (batchCommand.batchException.getSQLState()
2893
- .equals(SQLState.STATEMENT_CANCELED.getSQLStateCode())) {
+ String sqlState = batchCommand.batchException.getSQLState();
+ if (null != sqlState
2894
+ && sqlState.equals(SQLState.STATEMENT_CANCELED.getSQLStateCode())) {
2895
processBatch();
2896
continue;
2897
}
0 commit comments