jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-420) NullPointerException when deleting a property of type REFERENCE
Date Thu, 04 May 2006 09:47:24 GMT
     [ http://issues.apache.org/jira/browse/JCR-420?page=all ]
     
Jukka Zitting resolved JCR-420:
-------------------------------

    Fix Version: 1.0.1
     Resolution: Fixed

Possible fix committed in revision 399638. I didn't have time to test this very much yet,
so please reopen the issue if the problem persists.

> NullPointerException when deleting a property of type REFERENCE
> ---------------------------------------------------------------
>
>          Key: JCR-420
>          URL: http://issues.apache.org/jira/browse/JCR-420
>      Project: Jackrabbit
>         Type: Bug

>   Components: rmi
>     Versions: 1.0
>     Reporter: Michael Frericks
>     Assignee: Jukka Zitting
>     Priority: Blocker
>      Fix For: 1.0.1

>
> In method org.apache.jackrabbit.rmi.value.SerialValueFactory#createValue a NPE is thrown
when parameter value is null.
> Solution:
> Change:
>    public final Value createValue(Node value) throws RepositoryException {
>         return createValue(value.getUUID(), PropertyType.REFERENCE);
>     }
> to
>    public final Value createValue(Node value) throws RepositoryException {
>         if (value == null) {
>            return null;
>         }
>         
>         return createValue(value.getUUID(), PropertyType.REFERENCE);
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message