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