-
Bug
-
Resolution: Fixed
-
Major
-
3.1.0
-
None
-
4.1 RC1
In SynchronizableContentsCollectionMetadataProvider, two methods call the method ContentTypesHelper.getCommonAncestor which can return a null value.
But the null value is ignored and is added to an ImmutableList which thrown an error like this :
java.lang.NullPointerException: null value in entry: contentType=null at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:34) at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:175) at com.google.common.collect.ImmutableMap.of(ImmutableMap.java:123) at org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollectionMetadataProvider.getExternalAndLocalMetadata(SynchronizableContentsCollectionMetadataProvider.java:87) at org.ametys.cms.content.external.ExternalizableMetadataProviderExtensionPoint.getExternalAndLocalMetadata(ExternalizableMetadataProviderExtensionPoint.java:45) at org.ametys.cms.workflow.EditContentFunction.execute(EditContentFunction.java:318) [...]