juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r823362 - /webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/mapping/MappingModelToApi.java
Date Fri, 09 Oct 2009 00:05:46 GMT
Author: kstam
Date: Fri Oct  9 00:05:46 2009
New Revision: 823362

URL: http://svn.apache.org/viewvc?rev=823362&view=rev
Log:
JUDDI-290 setting the instanceDetails structure to null if neither overviewDoc nor instanceParms
exists

Modified:
    webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/mapping/MappingModelToApi.java

Modified: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/mapping/MappingModelToApi.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/mapping/MappingModelToApi.java?rev=823362&r1=823361&r2=823362&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/mapping/MappingModelToApi.java
(original)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/mapping/MappingModelToApi.java
Fri Oct  9 00:05:46 2009
@@ -470,7 +470,8 @@
 										  org.uddi.api_v3.InstanceDetails apiInstanceDetails,
 										  org.uddi.api_v3.TModelInstanceInfo apiTModelInstInfo) 
 				   throws DispositionReportFaultMessage {
-		if (modelTModelInstInfo == null)
+		if (modelTModelInstInfo == null || 
+				(modelTModelInstInfo.getInstanceParms() == null && modelTModelInstInfo.getOverviewDocs().size()
== 0))
 			return;
 		
 		if (apiInstanceDetails == null)
@@ -488,7 +489,7 @@
 		}
 		//OverviewDoc
 		mapOverviewDocs(modelTModelInstInfo.getOverviewDocs(),apiInstanceDetails,null);
-			
+	    
 		apiTModelInstInfo.setInstanceDetails(apiInstanceDetails);
 	}
 	



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


Mime
View raw message