diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/base/PluginServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/base/PluginServiceCEImpl.java index f14b49432de..4918834a3bb 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/base/PluginServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/base/PluginServiceCEImpl.java @@ -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; @@ -118,6 +119,7 @@ public Flux getInWorkspace(@NonNull String workspaceId) { Set pluginIds = workspace.getPlugins().stream() .map(WorkspacePlugin::getPluginId) + .filter(Objects::nonNull) .collect(Collectors.toUnmodifiableSet()); return repository.findAllById(pluginIds);