Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcsalter2005-07-20 03:52:56 +0000
committercsalter2005-07-20 03:52:56 +0000
commit9f867eedcea648c8feee0c34a8e2c874e7a424f2 (patch)
tree5e159e2aa21340ea97482f87c49032373a8c1dbc /bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl
parentcfef0d807e0f5238aafdace2588a170d84482a99 (diff)
downloadwebtools.webservices-9f867eedcea648c8feee0c34a8e2c874e7a424f2.tar.gz
webtools.webservices-9f867eedcea648c8feee0c34a8e2c874e7a424f2.tar.xz
webtools.webservices-9f867eedcea648c8feee0c34a8e2c874e7a424f2.zip
[104120] handle null definition to avoid QName ctor exception
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl')
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/DefinitionImpl.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/DefinitionImpl.java b/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/DefinitionImpl.java
index 1bc3f42cb..bc1d74134 100644
--- a/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/DefinitionImpl.java
+++ b/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/DefinitionImpl.java
@@ -1643,7 +1643,13 @@ public class DefinitionImpl extends ExtensibleElementImpl implements Definition
if (changedElement == getElement())
{
setTargetNamespace(changedElement.getAttribute("targetNamespace"));
- setQName(new QName(WSDLConstants.WSDL_NAMESPACE_URI, changedElement.getAttribute("name")));
+
+ // bug 104120
+ // ensure that the definition name is non null to avoid QName ctor exception
+ //
+ String definitionName = WSDLConstants.getAttribute(changedElement, "name");
+ setQName(new QName(WSDLConstants.WSDL_NAMESPACE_URI, definitionName != null ? definitionName : ""));
+
getENamespaces().clear();
getNamespaces().clear();
//getNamespaces().put("", null);

Back to the top