-
Bug
-
Resolution: Fixed
-
Blocker
-
4.6.0
-
None
-
4.6 M8
How to reproduce (Ametys Demo 4.6.0-20221115-0032-SNAPSHOT) and (Version: 4.6.0M7)
The following error is displayed
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Collection.stream()" because "contentTypeIds" is null at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable._getIndexingFieldSearchCriterionDefs(AbstractContentBasedSearchable.java:365) at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable.getCriteria(AbstractContentBasedSearchable.java:337) at org.ametys.web.frontoffice.search.metamodel.SearchServiceCreationHelper.lambda$getCriterionDefinitions$0(SearchServiceCreationHelper.java:261) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at org.ametys.web.frontoffice.search.metamodel.SearchServiceCreationHelper.getCriterionDefinitions(SearchServiceCreationHelper.java:264) at org.ametys.web.frontoffice.search.instance.SearchServiceInstanceFactory.createSearchServiceInstance(SearchServiceInstanceFactory.java:118) at org.ametys.web.frontoffice.search.instance.SearchServiceInstanceManager.get(SearchServiceInstanceManager.java:97) at org.ametys.web.frontoffice.search.SearchService.isCacheable(SearchService.java:172) at org.ametys.web.repository.PageGenerator._saxZoneItem(PageGenerator.java:442) ... 58 more