Skip to content

Commit

Permalink
[FIX] OptionalView.fixDependencies throw out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
gravit0 committed Jul 8, 2024
1 parent 1bebd8d commit ec526a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public Set<OptionalAction> getEnabledActions() {
public void fixDependencies() {
Set<OptionalFile> disabled = all.stream().filter(t -> !isEnabled(t)).collect(Collectors.toSet());
for (OptionalFile file : disabled) {
if (file.group != null && Arrays.stream(file.group).noneMatch(this::isEnabled)) {
if (file.group != null && file.group.length > 0 && Arrays.stream(file.group).noneMatch(this::isEnabled)) {
enable(file.group[0], false, null);
}
}
Expand Down

0 comments on commit ec526a3

Please sign in to comment.