ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r742202 - /webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java
Date Sun, 08 Feb 2009 23:15:32 GMT
Author: kstam
Date: Sun Feb  8 23:15:28 2009
New Revision: 742202

URL: http://svn.apache.org/viewvc?rev=742202&view=rev
Log:
SCOUT-68 fixing null pointer.

Modified:
    webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java

Modified: webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java
URL: http://svn.apache.org/viewvc/webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java?rev=742202&r1=742201&r2=742202&view=diff
==============================================================================
--- webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java
(original)
+++ webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java
Sun Feb  8 23:15:28 2009
@@ -434,19 +434,21 @@
       for (int i = 0; tmodelInstanceInfoArray != null && i < tmodelInstanceInfoArray.length;
i++)
       {
          TModelInstanceInfo info = (TModelInstanceInfo)tmodelInstanceInfoArray[i];
-         InstanceDetails idetails = info.getInstanceDetails();
-         Collection<ExternalLink> elinks = getExternalLinks(idetails.getOverviewDoc(),lcm);
-         SpecificationLink slink = new SpecificationLinkImpl(lcm);
-         slink.addExternalLinks(elinks);
-         serviceBinding.addSpecificationLink(slink); 
-         
-         ConceptImpl c = new ConceptImpl(lcm);
-         c.setExternalLinks(elinks);
-         c.setKey(lcm.createKey(info.getTModelKey())); 
-         c.setName(lcm.createInternationalString(idetails.getInstanceParms()));
-         c.setValue(idetails.getInstanceParms());
-         
-         slink.setSpecificationObject(c);
+         if (info!=null && info.getInstanceDetails()!=null) {
+	         InstanceDetails idetails = info.getInstanceDetails();
+	         Collection<ExternalLink> elinks = getExternalLinks(idetails.getOverviewDoc(),lcm);
+	         SpecificationLink slink = new SpecificationLinkImpl(lcm);
+	         slink.addExternalLinks(elinks);
+	         serviceBinding.addSpecificationLink(slink); 
+	         
+	         ConceptImpl c = new ConceptImpl(lcm);
+	         c.setExternalLinks(elinks);
+	         c.setKey(lcm.createKey(info.getTModelKey())); 
+	         c.setName(lcm.createInternationalString(idetails.getInstanceParms()));
+	         c.setValue(idetails.getInstanceParms());
+	         
+	         slink.setSpecificationObject(c);
+         }
       }
       
       HostingRedirector hr = bs.getHostingRedirector();



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


Mime
View raw message