Skip to content

Commit

Permalink
Fix ISE on list/remove groups action
Browse files Browse the repository at this point in the history
Temporary cherry-pick from: github.com//pull/9688
  • Loading branch information
cbbayburt committed Feb 10, 2025
1 parent 098b11e commit 1b1d7db
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Expand Down Expand Up @@ -79,7 +80,7 @@ public List<ManagedServerGroup> getResult(RequestContext context) {
List<ManagedServerGroup> groups = key.getServerGroups().stream()
.filter(g -> g instanceof ManagedServerGroup)
.map(g -> (ManagedServerGroup)g)
.toList();
.collect(Collectors.toList());
AddGroupsAction.setupAccessMap(context, groups);
return groups;
}
Expand Down

0 comments on commit 1b1d7db

Please sign in to comment.