GitHub user weltraumpirat opened a pull request:
https://github.com/apache/cxf/pull/78
Fix null pointer exception when importing a WSDL
PartialWSDLProcessor.isPortTypeExisted() checks against
definition.getAllPortTypes() (line 64), while the loop in WSDLServiceFactory
iterates only over definition.getPortTypes() (line 136). This causes a null
pointer exception in cases when addition WSDLs containing port type definitions
are imported, but none are defined in the parent WSDL.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/weltraumpirat/cxf patch-1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cxf/pull/78.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #78
----
commit 140f765a78765152cd5c5ab2a794dfd391175d8d
Author: Tobias Goeschel <[email protected]>
Date: 2015-06-23T12:05:33Z
Fix null pointer exception when importing a WSDL
PartialWSDLProcessor.isPortTypeExisted() checks against
definition.getAllPortTypes() (line 64), while the loop in WSDLServiceFactory
iterates only over definition.getPortTypes() (line 136). This causes a null
pointer exception in cases when addition WSDLs containing port type definitions
are imported, but none are defined in the parent WSDL.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---