-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.0.0 GA
-
Component/s: Query & PageProvider
-
Environment:Windows Eclipse.
-
Tags:
When Running the NXQL "SELECT * FROM Document ORDER BY modificationDate DESC", i am having an error on DocumentList Retrieval.
For what i have investigate, the error is getDocumentModels() method in JCRQueryResult.
You seem to fetch the schemas list only on the first occurence of your list.
If we have a folder in first we only retrieve "common" and "dublincore" schema, so it works fine with the other type that contains also these schemas.
However if the first line of the QueryResult is a file, we also have the "file" schema in our Schema list.
Therefore later, in the "createDocumentModel(..)" method when we try to popuplate schema on a folder that causes a NullPointerException and when it escalates bring us to the current problem.