You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by ka...@apache.org on 2008/12/22 19:38:47 UTC

svn commit: r728740 - /ode/branches/APACHE_ODE_1.X/bpel-obj/src/main/java/org/apache/ode/bpel/o/OPartnerLink.java

Author: karthick
Date: Mon Dec 22 10:38:46 2008
New Revision: 728740

URL: http://svn.apache.org/viewvc?rev=728740&view=rev
Log:
While reading older model classes, assume newer fields are un-initialized.

Modified:
    ode/branches/APACHE_ODE_1.X/bpel-obj/src/main/java/org/apache/ode/bpel/o/OPartnerLink.java

Modified: ode/branches/APACHE_ODE_1.X/bpel-obj/src/main/java/org/apache/ode/bpel/o/OPartnerLink.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/bpel-obj/src/main/java/org/apache/ode/bpel/o/OPartnerLink.java?rev=728740&r1=728739&r2=728740&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/bpel-obj/src/main/java/org/apache/ode/bpel/o/OPartnerLink.java (original)
+++ ode/branches/APACHE_ODE_1.X/bpel-obj/src/main/java/org/apache/ode/bpel/o/OPartnerLink.java Mon Dec 22 10:38:46 2008
@@ -173,6 +173,10 @@
      */
     @SuppressWarnings("unchecked")
     public Set<OScope.CorrelationSet> getUniqueCorrelationSetsForOperation(Operation operation) {
+    	// if we read an older version of this class, the unique set will be un-initialized!
+    	if (_uniqueInitiatingCorrelationSets == null) {
+    		return Collections.EMPTY_SET;
+    	}
         Set<OScope.CorrelationSet> ret = _uniqueInitiatingCorrelationSets.get(operation.getName());
         if (ret == null) {
             return Collections.EMPTY_SET;