jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Padraic Hannon (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1044) NTCollectionConverterImpl throws a null pointer exception on update
Date Tue, 31 Jul 2007 02:02:52 GMT

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

Padraic Hannon updated JCR-1044:
--------------------------------

    Attachment: NTCollectionConverterImpl.diff

This puts a null check around the code which is attempting to delete JCR nodes not present
in the current objects collection.

> NTCollectionConverterImpl throws a null pointer exception on update
> -------------------------------------------------------------------
>
>                 Key: JCR-1044
>                 URL: https://issues.apache.org/jira/browse/JCR-1044
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jcr-mapping
>    Affects Versions: 1.3
>         Environment: All
>            Reporter: Padraic Hannon
>         Attachments: NTCollectionConverterImpl.diff
>
>
> When calling update on a node which has no child nodes stored (but which can have child
nodes) the code can generate a null pointer exception. In the case where one goes to remove
JCR nodes which are not present in the current objects collection of child objects the code
is calling getCollectionNodes().iterator(). However, since is not checking for the case where
getCollectionNodes() returns null if there are no child nodes present a null pointer exception
will be generated. 

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