Deal with non available partition by search.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / acr / CmsContentSession.java
index daefe9835e371c4210bf6487ce108ac04700e05d..290552f640b2235fdc32fa8c906d968b1ae2d9a6 100644 (file)
@@ -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);
        }