Uploaded image for project: 'Woden'
  1. Woden
  2. WODEN-243

Code error in org.apache.woden.internal.DOMWSDLWriter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • M10
    • None
    • Parser
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            JWT007 Jeff Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: