Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public ResponseEntity<CollectionModel<ModerationRequest>> getModerationRequestsB
"Invalid ModerationRequest state '%s', possible values are: %s", state, stateOptions));
}

boolean stateOpen = stateOptions.get(0).equalsIgnoreCase(state);
boolean stateOpen = "open".equalsIgnoreCase(state);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stateOptions can never be null, stateOptions.get(0) can never be null as they are set in line 193-194

Map<PaginationData, List<ModerationRequest>> modRequestsWithPageData =
sw360ModerationRequestService.getRequestsByState(sw360User, pageable, stateOpen, allDetails);
return getModerationResponseEntity(pageable, request, allDetails, modRequestsWithPageData);
Expand Down