For a folder where VCS does not know the children types, CoreSession#hasChildren returns true, but CoreSession#getChildren}} returns an empty list.
For instance, for a folder containing only Picture documents, after removing nuxeo-dam, an exception is thrown in ThumbnailFolderishFactory:
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at org.nuxeo.ecm.platform.thumbnail.factories.ThumbnailFolderishFactory.getThumbnail(ThumbnailFolderishFactory.java:37) at org.nuxeo.ecm.core.api.thumbnail.ThumbnailServiceImpl.getThumbnail(ThumbnailServiceImpl.java:86) at org.nuxeo.ecm.core.api.thumbnail.ThumbnailAdapter.getThumbnail(ThumbnailAdapter.java:42) at org.nuxeo.ecm.platform.thumbnail.seam.ThumbnailManagerBean.downloadThumbnail(ThumbnailManagerBean.java:69)
- is related to
-
NXP-22536 Fix inconsistency between CoreSession#hasChildren and CoreSession#getChildren in 6.0
- Resolved