Skip to content

Commit

Permalink
fix: quick null check for nullable property
Browse files Browse the repository at this point in the history
  • Loading branch information
nemo83 committed Feb 21, 2024
1 parent b816856 commit e48a503
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public ResponseEntity<BatchResponse> getSubjects(final BatchRequest body) {
} else {
final Map<String, TokenMetadata> subjects = v1ApiMetadataIndexer.findSubjectsSelectProperties(
body.getSubjects(),
body.getProperties());
body.getProperties() == null ? List.of() : body.getProperties());
if (subjects.isEmpty()) {
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
} else {
Expand Down

0 comments on commit e48a503

Please sign in to comment.