You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Thomas Andraschko (JIRA)" <ji...@apache.org> on 2012/12/12 14:01:23 UTC

[jira] [Commented] (OWB-736) NPE while removing dependent beans

    [ https://issues.apache.org/jira/browse/OWB-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13529929#comment-13529929 ] 

Thomas Andraschko commented on OWB-736:
---------------------------------------

If there are no objections, i'll commit the attached patch to trunk and 1.1 branch soon.
                
> NPE while removing dependent beans
> ----------------------------------
>
>                 Key: OWB-736
>                 URL: https://issues.apache.org/jira/browse/OWB-736
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Context and Scopes
>    Affects Versions: 1.1.6
>            Reporter: Thomas Andraschko
>            Assignee: Thomas Andraschko
>         Attachments: OWB-736.patch
>
>
> CreationalContextImpl#removeAllDependents on line 281:
> Collection<List<DependentCreationalContext<?>>> values = dependentObjects.values();
> dependentObjects can be null.
> We should do a second null check inside the synchronized block.
> There are other synchronized blocks in this class, maybe we should check them too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira