Author: lwaterman
Date: Mon Sep 18 18:58:43 2006
New Revision: 447674

URL: http://svn.apache.org/viewvc?view=rev&rev=447674
Log:
Add test for null property

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

Modified: 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java?view=diff&rev=447674&r1=447673&r2=447674
==============================================================================
--- 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java
 (original)
+++ 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java
 Mon Sep 18 18:58:43 2006
@@ -751,8 +751,14 @@
         String mySessionId = plinkDAO.getMySessionId();
         String partnerSessionId = plinkDAO.getPartnerSessionId();
         
-        mexDao.setProperty(MessageExchange.PROPERTY_SEP_MYROLE_SESSIONID, 
mySessionId);
-        mexDao.setProperty(MessageExchange.PROPERTY_SEP_PARTNERROLE_SESSIONID, 
partnerSessionId);
+//        mexDao.setProperty(MessageExchange.PROPERTY_SEP_MYROLE_SESSIONID, 
mySessionId);
+//        
mexDao.setProperty(MessageExchange.PROPERTY_SEP_PARTNERROLE_SESSIONID, 
partnerSessionId);
+        if ( mySessionId != null )
+               
mexDao.setProperty(MessageExchange.PROPERTY_SEP_MYROLE_SESSIONID, mySessionId);
+        if ( partnerSessionId != null ) 
+               
mexDao.setProperty(MessageExchange.PROPERTY_SEP_PARTNERROLE_SESSIONID, 
partnerSessionId);
+
+        
         if (__log.isDebugEnabled())
             __log.debug("INVOKE PARTNER (SEP): sessionId=" + mySessionId + " 
partnerSessionId=" + partnerSessionId);
         


Reply via email to