aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-847) Nullpointer exception in org.apache.aries.blueprint.container.BeanRecipe.destroy
Date Mon, 07 May 2012 15:54:50 GMT

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

Christian Schneider commented on ARIES-847:
-------------------------------------------

Hi Sergey,

you did not include the check for null. How does the code behave if obj is null? Have you
tested with a blueprint file that has errors? 


Christian

                
> Nullpointer exception in org.apache.aries.blueprint.container.BeanRecipe.destroy
> --------------------------------------------------------------------------------
>
>                 Key: ARIES-847
>                 URL: https://issues.apache.org/jira/browse/ARIES-847
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: 0.4
>            Reporter: Christian Schneider
>            Assignee: Sergey Beryozkin
>             Fix For: 0.4
>
>         Attachments: aries-847-1.patch
>
>
> If the blueprint file contains an error the obj given to destroy may be null. Currently
this is not handled. The big problem in this case is that the user does not get a good error
message about his error in the context.
> I will add a patch with the check.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message