jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Rauschenbach (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1208) SPI2JCR throws NPE when target Repository has root node with null NodeType.primaryItemName
Date Wed, 07 Nov 2007 17:23:50 GMT
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.


Mime
View raw message