-
Type: Bug
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Query & PageProvider, User Profile / User Manager
-
Release Notes Summary:Null members will not be returned to a Group page provider.
-
Backlog priority:1,000
-
Sprint:nxcore 9.3.10
-
Story Points:2
We get this error:
Caused by: java.lang.NullPointerException at org.nuxeo.ecm.platform.usermanager.io.NuxeoPrincipalJsonWriter.writeEntityBody(NuxeoPrincipalJsonWriter.java:115) at org.nuxeo.ecm.platform.usermanager.io.NuxeoPrincipalJsonWriter.writeEntityBody(NuxeoPrincipalJsonWriter.java:98) at org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter.write(ExtensibleEntityJsonWriter.java:79) at org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter.write(AbstractJsonWriter.java:76) at org.nuxeo.ecm.core.io.marshallers.json.DefaultListJsonWriter.write(DefaultListJsonWriter.java:124) at org.nuxeo.ecm.core.io.marshallers.json.DefaultListJsonWriter.write(DefaultListJsonWriter.java:70) at org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter.write(AbstractJsonWriter.java:76) at org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate.writeTo(PartialCoreIODelegate.java:121) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:302)
This is due to null values being inserted in the currentPage of AbstractGroupMemberPageProvider at currentPage.add(getMember(member))