Skip to content

Commit

Permalink
Check for null in ErrHandlingDeserializer2.close()
Browse files Browse the repository at this point in the history
Wrap `this.delegate` into null check in the `ErrorHandlingDeserializer2.close()`
  • Loading branch information
lukyer authored and artembilan committed May 10, 2019
1 parent fc5d433 commit 6de3747
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ public T deserialize(String topic, Headers headers, byte[] data) {

@Override
public void close() {
this.delegate.close();
if (this.delegate != null) {
this.delegate.close();
}
}

private void deserializationException(Headers headers, byte[] data, Exception e) {
Expand Down

0 comments on commit 6de3747

Please sign in to comment.