Skip to content

Commit

Permalink
remove null check getCategory returns null in some cases;
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed Nov 17, 2021
1 parent edc1c90 commit e0a8113
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ protected AbstractCommand(final String type, final DittoHeaders dittoHeaders) {
}

private void validateHeaders(final Category category) {
checkNotNull(category, "category");
if (Category.QUERY == category && !dittoHeaders.isResponseRequired()) {
final String headerKey = DittoHeaderDefinition.RESPONSE_REQUIRED.getKey();
throw CommandHeaderInvalidException.newBuilder(headerKey)
Expand Down

0 comments on commit e0a8113

Please sign in to comment.