juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r941120 - /webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java
Date Wed, 05 May 2010 00:18:15 GMT
Author: kstam
Date: Wed May  5 00:18:14 2010
New Revision: 941120

URL: http://svn.apache.org/viewvc?rev=941120&view=rev
Log:
JUDDI-393, fixing NPE take two :)

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=941120&r1=941119&r2=941120&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
Wed May  5 00:18:14 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()!=null || (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