Still receiving null pointer exception when notifying subscriptions filtered 
other than find_service
----------------------------------------------------------------------------------------------------

                 Key: JUDDI-393
                 URL: https://issues.apache.org/jira/browse/JUDDI-393
             Project: jUDDI
          Issue Type: Bug
    Affects Versions: 3.0.2
         Environment: Tomcat 6.0.10, PostgreSQL 8.4
            Reporter: Jason Brown
            Assignee: Kurt T Stam


After getting the latest code from the repository we were still receiving the 
null pointer exception when saving subscriptions which did not contain the 
filter save_service as referenced in JUDDI-389. 

As a workaround, we changed the following code (line 220, 
SubscriptionNotifier.java) :

if (resultList.getServiceList()!=null || 
(resultList.getServiceList().getServiceInfos()!=null 
&&resultList.getServiceList().getServiceInfos().getServiceInfo().size() == 0)) {
                                
resultList.getServiceList().setServiceInfos(null);
}

to:

                        if (resultList.getServiceList() != null) {
                          if 
(resultList.getServiceList().getServiceInfos()!=null &&
                                                
resultList.getServiceList().getServiceInfos().getServiceInfo().size() == 0) {
                                                        
resultList.getServiceList().setServiceInfos(null);
                                }
                        }

and have been receiving favorable results with the other find_xxx and get_xxx 
filters in our subscriptions.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to