From 2e4eb39468ca952109a7bb8ad6e5eaf417923e17 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Thu, 31 Aug 2023 14:18:28 +0200 Subject: [PATCH] Deal with non available partition by search. --- org.argeo.cms/src/org/argeo/cms/acr/CmsContentSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.argeo.cms/src/org/argeo/cms/acr/CmsContentSession.java b/org.argeo.cms/src/org/argeo/cms/acr/CmsContentSession.java index daefe9835..290552f64 100644 --- a/org.argeo.cms/src/org/argeo/cms/acr/CmsContentSession.java +++ b/org.argeo.cms/src/org/argeo/cms/acr/CmsContentSession.java @@ -217,6 +217,8 @@ class CmsContentSession implements ProvidedSession, UuidIdentified { searchPartitions.put(contentProvider.getKey(), searchPartition); } } + if(searchPartitions.isEmpty()) + return Stream.empty(); return StreamSupport.stream(new SearchPartitionsSpliterator(searchPartitions), true); } -- 2.30.2