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

Reply via email to