ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r585620 - /ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
Date Wed, 17 Oct 2007 18:24:50 GMT
Author: vanto
Date: Wed Oct 17 11:24:46 2007
New Revision: 585620

URL: http://svn.apache.org/viewvc?rev=585620&view=rev
Log:
fixes ODE-197

Modified:
    ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java

Modified: ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java?rev=585620&r1=585619&r2=585620&view=diff
==============================================================================
--- ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java (original)
+++ ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java Wed Oct
17 11:24:46 2007
@@ -629,8 +629,10 @@
             }
 
             if (pl.hasPartnerRole()) {
-                PartnerLinkPartnerRoleImpl partnerRole = new PartnerLinkPartnerRoleImpl(this,
pl, _pconf.getInvokeEndpoints().get(
-                        pl.getName()));
+            	Endpoint endpoint = _pconf.getInvokeEndpoints().get(pl.getName());
+                if (endpoint == null)
+                    throw new IllegalArgumentException(pl.getName() + " must be bound to
an endpoint in deloy.xml");
+            	PartnerLinkPartnerRoleImpl partnerRole = new PartnerLinkPartnerRoleImpl(this,
pl, endpoint);
                 _partnerRoles.put(pl, partnerRole);
             }
         }



Mime
View raw message