ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Thomas (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WODEN-243) Code error in org.apache.woden.internal.DOMWSDLWriter
Date Sun, 13 Aug 2017 12:05:00 GMT

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

Jeff Thomas updated WODEN-243:
------------------------------
    Description: 
Looks like a small error in the DOMWSDLWriter:

The check on line 767 should be against the 'interfaceName' and not the 'name' attribute.


{code:java}
760                  QName name = service.getName();
761	                if (name != null){
762	                    DOMUtils.printAttribute(Constants.ATTR_NAME,
763	                            name.getLocalPart(),
764	                            pw);
765	                }
766	                QName interfaceName = service.getInterfaceName();
767	                if (name != null){
768	
769	                    DOMUtils.printQualifiedAttribute(Constants.ATTR_INTERFACE,
770	                            interfaceName,des, pw);
771	                }
{code}


This could lead to a NullPointerException in printQualifiedAttribute.



  was:
Looks like a small error in the DOMWSDLWriter:

The check on line 767 should be against the 'interfaceName' and not the 'name' attribute.

{{760                  QName name = service.getName();
761	                if (name != null){
762	                    DOMUtils.printAttribute(Constants.ATTR_NAME,
763	                            name.getLocalPart(),
764	                            pw);
765	                }
766	                QName interfaceName = service.getInterfaceName();
767	                if (name != null){
768	
769	                    DOMUtils.printQualifiedAttribute(Constants.ATTR_INTERFACE,
770	                            interfaceName,des, pw);
771	                }}}

This could lead to a NullPointerException in printQualifiedAttribute.




> Code error in org.apache.woden.internal.DOMWSDLWriter
> -----------------------------------------------------
>
>                 Key: WODEN-243
>                 URL: https://issues.apache.org/jira/browse/WODEN-243
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: M10
>            Reporter: Jeff Thomas
>
> Looks like a small error in the DOMWSDLWriter:
> The check on line 767 should be against the 'interfaceName' and not the 'name' attribute.
> {code:java}
> 760                  QName name = service.getName();
> 761	                if (name != null){
> 762	                    DOMUtils.printAttribute(Constants.ATTR_NAME,
> 763	                            name.getLocalPart(),
> 764	                            pw);
> 765	                }
> 766	                QName interfaceName = service.getInterfaceName();
> 767	                if (name != null){
> 768	
> 769	                    DOMUtils.printQualifiedAttribute(Constants.ATTR_INTERFACE,
> 770	                            interfaceName,des, pw);
> 771	                }
> {code}
> This could lead to a NullPointerException in printQualifiedAttribute.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message