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 1290f9c commit e4e783aCopy full SHA for e4e783a
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java
@@ -2972,8 +2972,9 @@ final void doExecutePreparedStatementBatch(PrepStmtBatchExecCmd batchCommand) th
2972
if (null == batchCommand.batchException)
2973
batchCommand.batchException = e;
2974
2975
- if (batchCommand.batchException.getSQLState()
2976
- .equals(SQLState.STATEMENT_CANCELED.getSQLStateCode())) {
+ String sqlState = batchCommand.batchException.getSQLState();
+ if (null != sqlState
2977
+ && sqlState.equals(SQLState.STATEMENT_CANCELED.getSQLStateCode())) {
2978
processBatch();
2979
continue;
2980
}
0 commit comments