You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Dan Becker (JIRA)" <de...@tuscany.apache.org> on 2008/10/08 21:25:44 UTC

[jira] Assigned: (TUSCANY-2632) SCA Policy BundingTypeImpl toString can cause NullPointerException

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

Dan Becker reassigned TUSCANY-2632:
-----------------------------------

    Assignee: Dan Becker

> SCA Policy BundingTypeImpl toString can cause NullPointerException
> ------------------------------------------------------------------
>
>                 Key: TUSCANY-2632
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2632
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>            Reporter: Dan Becker
>            Assignee: Dan Becker
>            Priority: Minor
>             Fix For: Java-SCA-1.3.2, Java-SCA-1.4
>
>
> tuscany-policy/src/main/java/org/apache/tuscany/sca/policy/impl/BindingTypeImpl toString() is implemented as getName().toString(). This is unsafe when the QName is null and can return a NullPointerException. Test the name in order to program more defensively.
> For example:
> return (getName() != null) ? getName().toString() : "null";

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.