Skip to content

Commit

Permalink
Add null check (#1469)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulvii authored Dec 1, 2020
1 parent 798cc0c commit 8c0d32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -6560,7 +6560,7 @@ private boolean nextPacket() throws SQLServerException {
if (null == consumedPacket.next) {
// if the read comes from getNext() and responseBuffering is Adaptive (in this place is), then reset Counter
// State
if (command.getTDSWriter().checkIfTdsMessageTypeIsBatchOrRPC()) {
if (null != command && command.getTDSWriter().checkIfTdsMessageTypeIsBatchOrRPC()) {
command.getCounter().resetCounter();
}
readPacket();
Expand Down

0 comments on commit 8c0d32b

Please sign in to comment.