juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r1133052 - /juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/mapping/BPEL2UDDI.java
Date Tue, 07 Jun 2011 15:51:33 GMT
Author: kstam
Date: Tue Jun  7 15:51:33 2011
New Revision: 1133052

URL: http://svn.apache.org/viewvc?rev=1133052&view=rev
Log:
JUDDI-475 fixing NPE

Modified:
    juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/mapping/BPEL2UDDI.java

Modified: juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/mapping/BPEL2UDDI.java
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/mapping/BPEL2UDDI.java?rev=1133052&r1=1133051&r2=1133052&view=diff
==============================================================================
--- juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/mapping/BPEL2UDDI.java
(original)
+++ juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/mapping/BPEL2UDDI.java
Tue Jun  7 15:51:33 2011
@@ -286,10 +286,12 @@ public class BPEL2UDDI extends Annotatio
 		service.setServiceKey(Property.getServiceKey(properties, serviceName));
 		// Description
 		String serviceDescription = properties.getProperty(Property.SERVICE_DESCRIPTION, Property.DEFAULT_SERVICE_DESCRIPTION);
-		// Override with the service description from the WSDL if present
-		Element docElement = wsdlDefinition.getService(serviceName).getDocumentationElement();
-		if (docElement!=null && docElement.getTextContent()!=null) {
-			serviceDescription = docElement.getTextContent();
+		if (wsdlDefinition.getService(serviceName) !=null) {
+			// Override with the service description from the WSDL if present
+			Element docElement = wsdlDefinition.getService(serviceName).getDocumentationElement();
+			if (docElement!=null && docElement.getTextContent()!=null) {
+				serviceDescription = docElement.getTextContent();
+			}
 		}
 		Description description = new Description();
 		description.setLang(lang);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message