Skip to content

Commit

Permalink
fix: Empty plugin ids in workspaces are breaking application load (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhi-nair committed Apr 29, 2024
1 parent d38e4b0 commit ef89875
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -51,6 +51,7 @@
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -118,6 +119,7 @@ public Flux<Plugin> getInWorkspace(@NonNull String workspaceId) {

Set<String> pluginIds = workspace.getPlugins().stream()
.map(WorkspacePlugin::getPluginId)
.filter(Objects::nonNull)
.collect(Collectors.toUnmodifiableSet());

return repository.findAllById(pluginIds);
Expand Down

0 comments on commit ef89875

Please sign in to comment.