You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by he...@apache.org on 2012/06/13 23:49:22 UTC

svn commit: r1350032 - /incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/impl/GramProvider.java

Author: heshan
Date: Wed Jun 13 21:49:21 2012
New Revision: 1350032

URL: http://svn.apache.org/viewvc?rev=1350032&view=rev
Log:
Fix for AIRAVATA-470

Modified:
    incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/impl/GramProvider.java

Modified: incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/impl/GramProvider.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/impl/GramProvider.java?rev=1350032&r1=1350031&r2=1350032&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/impl/GramProvider.java (original)
+++ incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/impl/GramProvider.java Wed Jun 13 21:49:21 2012
@@ -321,8 +321,8 @@ public class GramProvider extends Abstra
                          throw exception;
                     }
                     // If users has given an output DAta poth we download the output files in to that directory, this will be apath in the machine where GFac is installed
-                    if(WorkflowContextHeaderBuilder.getCurrentContextHeader()
-                            .getWorkflowOutputDataHandling() != null){
+                    if(WorkflowContextHeaderBuilder.getCurrentContextHeader() != null &&
+                            WorkflowContextHeaderBuilder.getCurrentContextHeader().getWorkflowOutputDataHandling() != null){
                         WorkflowOutputDataHandlingDocument.WorkflowOutputDataHandling workflowOutputDataHandling =
                                 WorkflowContextHeaderBuilder.getCurrentContextHeader().getWorkflowOutputDataHandling();
                         if(workflowOutputDataHandling.getApplicationOutputDataHandlingArray().length != 0){