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

Fix refreshDocument if the document type has schema from a facet

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.0-HF12, 5.7.1
    • Component/s: Core

      Description

      When doing the refresh, the document parts are built from the own document schemas, without taking into account the ones from facets.
      Then this error could happen

      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.core.api.model.impl.ComplexProperty.getChildren(ComplexProperty.java:141)
      	at org.nuxeo.ecm.core.api.model.impl.AbstractProperty.iterator(AbstractProperty.java:111)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.readDocumentPart(SQLDocumentLive.java:147)
      	at org.nuxeo.ecm.core.api.DocumentModelFactory.refreshDocumentModel(DocumentModelFactory.java:364)
      	at org.nuxeo.ecm.core.api.AbstractSession.refreshDocument(AbstractSession.java:3286)
      

      using the SchemaManager to get the schemas will prevent from raising this error.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: