SPI2JCR throws NPE when target Repository has root node with null
NodeType.primaryItemName
------------------------------------------------------------------------------------------
Key: JCR-1208
URL: https://issues.apache.org/jira/browse/JCR-1208
Project: Jackrabbit
Issue Type: Bug
Components: SPI
Affects Versions: 1.4
Reporter: David Rauschenbach
SPI2JCR is used to invoke a Jeceira-based repository using SPI calls. The
repository in question returns a root node with a primary NodeType containing a
null primaryItemName. According to the JCR Javadocs for NodeType, this seems
allowable.
SPI2JCR throws a NPE during the getQNodeTypeDefinitions method, because the
nullable primary NodeType.primaryItemName attribute is assumed to be non-null.
The stack trace is (using today's Maven snapshot):
java.lang.NullPointerException
at
com.jeceira.nodetype.SessionNodeType.getPrimaryItemName(SessionNodeType.java:547)
at
org.apache.jackrabbit.spi2jcr.QNodeTypeDefinitionImpl.<init>(QNodeTypeDefinitionImpl.java:60)
at
org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl.getQNodeTypeDefinitions(RepositoryServiceImpl.java:1015)
...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.