jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-1143) NullPointerException in ClassDescriptor
Date Tue, 25 Sep 2007 14:28:50 GMT

     [ https://issues.apache.org/jira/browse/JCR-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Felix Meschberger resolved JCR-1143.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4

Fixed, please close, if this fixes your issue.

> NullPointerException in ClassDescriptor
> ---------------------------------------
>
>                 Key: JCR-1143
>                 URL: https://issues.apache.org/jira/browse/JCR-1143
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jcr-mapping
>            Reporter: Carsten Ziegeler
>            Assignee: Felix Meschberger
>             Fix For: 1.4
>
>
> Index: /Users/cziegeler/Developer/workspaces/default/jackrabbit/contrib/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/mapper/model/ClassDescriptor.java
> ===================================================================
> --- /Users/cziegeler/Developer/workspaces/default/jackrabbit/contrib/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/mapper/model/ClassDescriptor.java
(revision 579109)
> If a class descriptor (for whatever reason) does not have a jcr type, a npe is thrown
in ClassDescriptor.
> The following patch solves this issue:
> +++ contrib/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/mapper/model/ClassDescriptor.java
(working copy)
> @@ -468,7 +468,7 @@
>          while (iterator.hasNext()) {
>              ClassDescriptor descendantClassDescriptor = (ClassDescriptor) iterator.next();
>    
> -            if (descendantClassDescriptor.getJcrType().equals(nodeType)) {
> +            if (nodeType.equals(descendantClassDescriptor.getJcrType())) {
>                  return descendantClassDescriptor;
>              }
>    

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