MetadataSetDefGenerator can be called with null content to sax model from a content type (use for UGC forms for example)
When accessing to a UGC form, there are multiple errors in logs:
java.lang.RuntimeException: complex key is not valid because it contains null values at org.ametys.plugins.core.impl.cache.GuavaCache.put(GuavaCache.java:174) at org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController._putInFirstCache(AbstractProfileStorageBasedAccessController.java:564) at org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController._hasAnonymousAnyPermissionOnWorkspace(AbstractProfileStorageBasedAccessController.java:405) at org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController.hasAnonymousAnyPermissionOnWorkspace(AbstractProfileStorageBasedAccessController.java:378) at org.ametys.core.right.RightManager._hasRightOrRead(RightManager.java:387) at org.ametys.core.right.RightManager._hasRightOrRead(RightManager.java:330) at org.ametys.core.right.RightManager._hasRight(RightManager.java:323) at org.ametys.core.right.RightManager.hasRight(RightManager.java:289) at org.ametys.cms.content.MetadataSetDefGenerator._saxMetadataDefinition(MetadataSetDefGenerator.java:252) at org.ametys.cms.content.MetadataSetDefGenerator._saxMetadataSetElement(MetadataSetDefGenerator.java:170) at org.ametys.cms.content.MetadataSetDefByContentTypeGenerator._saxContentTypeMetadataSet(MetadataSetDefByContentTypeGenerator.java:86) at org.ametys.cms.content.MetadataSetDefByContentTypeGenerator.generate(MetadataSetDefByContentTypeGenerator.java:49)