{{Caused by: java.lang.NullPointerException: Cannot invoke "org.ametys.cms.data.ContentValue.getContentId()" because "contentValue" is null
at org.ametys.cms.data.type.AbstractContentElementType.lambda$9(AbstractContentElementType.java:237)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.ametys.cms.data.type.AbstractContentElementType._valueToJSON(AbstractContentElementType.java:240)
at org.ametys.cms.data.type.AbstractContentElementType.valueToJSONForClient(AbstractContentElementType.java:128)
at org.ametys.runtime.model.type.ModelItemType.valueToJSONForClient(ModelItemType.java:83)
at org.ametys.runtime.model.DefaultElementDefinition._toJSON(DefaultElementDefinition.java:384)
at org.ametys.cms.contenttype.AttributeDefinition._toJSON(AttributeDefinition.java:96)
at org.ametys.cms.contenttype.ContentAttributeDefinition._toJSON(ContentAttributeDefinition.java:269)
at org.ametys.runtime.model.AbstractModelItem.toJSON(AbstractModelItem.java:238)
at org.ametys.runtime.model.ViewElement.toJSON(ViewElement.java:109)
at org.ametys.runtime.model.ViewHelper.viewItemsToJSON(ViewHelper.java:653)
at org.ametys.runtime.model.ModelViewItemGroup.toJSON(ModelViewItemGroup.java:165)
at org.ametys.runtime.model.ViewHelper.viewItemsToJSON(ViewHelper.java:653)
at org.ametys.runtime.model.SimpleViewItemGroup.toJSON(SimpleViewItemGroup.java:74)
at org.ametys.runtime.model.ViewHelper.viewItemsToJSON(ViewHelper.java:653)
at org.ametys.runtime.model.SimpleViewItemGroup.toJSON(SimpleViewItemGroup.java:74)
at org.ametys.runtime.model.ViewHelper.viewItemsToJSON(ViewHelper.java:653)
at org.ametys.runtime.model.View.toJSON(View.java:344)
at org.ametys.cms.content.ContentHelper.getContentViewAsJSON(ContentHelper.java:450)}}
- duplicates
-
RUNTIME-3899 Multiple attribute: Default value on unexisting value
- Closed