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