airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1231322 - /incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java
Date Fri, 13 Jan 2012 21:52:08 GMT
Author: lahiru
Date: Fri Jan 13 21:52:08 2012
New Revision: 1231322

URL: http://svn.apache.org/viewvc?rev=1231322&view=rev
Log:
fixing NPE in Interpreter service.

Modified:
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java?rev=1231322&r1=1231321&r2=1231322&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java
Fri Jan 13 21:52:08 2012
@@ -765,11 +765,21 @@ public class WorkflowInterpreter {
 								.getID()));
 
 			} else {
-				invoker = new GenericInvoker(portTypeQName,
+                if(this.mode == GUI_MODE){
+                    //if user configure the msgBox url using the UI we have to pick the latest
one which
+                    //set by the UI
+				    invoker = new GenericInvoker(portTypeQName,
 						WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(wsNode
 								.getComponent().getWSDL()), node.getID(),
 						this.engine.getMonitor().getConfiguration().getMessageBoxURL().toASCIIString(),
 						gfacURLString, this.notifier);
+                }else{
+                    invoker = new GenericInvoker(portTypeQName,
+						WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(wsNode
+								.getComponent().getWSDL()), node.getID(),
+						this.configuration.getMessageBoxURL().toASCIIString(),
+						gfacURLString, this.notifier);
+                }
 			}
 
 		} else {



Mime
View raw message