-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 7.2
-
Component/s: Automation, Rest API
-
Tags:
-
Sprint:TGV 7.2-3
When isPaginable = false, Nuxeo doesn't print it in JSON Payload. When adding isPaginable = false in a custom JSON Payload, an NPE is raised:
Caused by: java.lang.NullPointerException at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentMarshaller.readDocument(DocumentMarshaller.java:63) at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller.readDocumentEntries(DocumentsMarshaller.java:46) at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller.readDocuments(DocumentsMarshaller.java:57) at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller.read(DocumentsMarshaller.java:109) at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller.read(DocumentsMarshaller.java:25)
We should fix org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller#read by adding a jp.nextToken(); when isPaginable exists and is set to false.