Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23747

Group member page provider must not return nulls

    XMLWordPrintable

    Details

      Description

      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))

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m