juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r940558 - /webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java
Date Mon, 03 May 2010 18:27:49 GMT
Author: kstam
Date: Mon May  3 18:27:49 2010
New Revision: 940558

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

Modified:
    webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java

Modified: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java?rev=940558&r1=940557&r2=940558&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java
(original)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java
Mon May  3 18:27:49 2010
@@ -217,8 +217,8 @@ public class SubscriptionNotifier extend
 			}
 			org.apache.juddi.model.BindingTemplate bindingTemplate= em.find(org.apache.juddi.model.BindingTemplate.class,
modelSubscription.getBindingKey());
 			NotifySubscriptionListener body = new NotifySubscriptionListener();
-			if (resultList.getServiceList().getServiceInfos()!=null &&
-					resultList.getServiceList().getServiceInfos().getServiceInfo().size() == 0) {
+			if (resultList.getServiceList()!=null || (resultList.getServiceList().getServiceInfos()!=null
&&
+					resultList.getServiceList().getServiceInfos().getServiceInfo().size() == 0)) {
 				resultList.getServiceList().setServiceInfos(null);
 			}
 			body.setSubscriptionResultsList(resultList);



---------------------------------------------------------------------
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