airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1462290 - /airavata/trunk/modules/commons/workflow-execution-context/src/main/java/org/apache/airavata/common/workflow/execution/context/WorkflowContextHeaderBuilder.java
Date Thu, 28 Mar 2013 20:14:06 GMT
Author: samindaw
Date: Thu Mar 28 20:14:06 2013
New Revision: 1462290

URL: http://svn.apache.org/r1462290
Log:
null chk for context

Modified:
    airavata/trunk/modules/commons/workflow-execution-context/src/main/java/org/apache/airavata/common/workflow/execution/context/WorkflowContextHeaderBuilder.java

Modified: airavata/trunk/modules/commons/workflow-execution-context/src/main/java/org/apache/airavata/common/workflow/execution/context/WorkflowContextHeaderBuilder.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/commons/workflow-execution-context/src/main/java/org/apache/airavata/common/workflow/execution/context/WorkflowContextHeaderBuilder.java?rev=1462290&r1=1462289&r2=1462290&view=diff
==============================================================================
--- airavata/trunk/modules/commons/workflow-execution-context/src/main/java/org/apache/airavata/common/workflow/execution/context/WorkflowContextHeaderBuilder.java
(original)
+++ airavata/trunk/modules/commons/workflow-execution-context/src/main/java/org/apache/airavata/common/workflow/execution/context/WorkflowContextHeaderBuilder.java
Thu Mar 28 20:14:06 2013
@@ -50,8 +50,11 @@ public class WorkflowContextHeaderBuilde
 
     public WorkflowContextHeaderBuilder(ContextHeaderDocument.ContextHeader document){
         this.contextHeader = document;
-        this.securityContext=contextHeader.getSecurityContext();
+        if (contextHeader!=null) {
+			this.securityContext = contextHeader.getSecurityContext();
+		}
     }
+    
     public WorkflowContextHeaderBuilder(String brokerUrl, String gfacUrl, String registryUrl,
String experimentId,
                                         String workflowId, String msgBoxUrl) {
         this.contextHeader = ContextHeaderDocument.ContextHeader.Factory.newInstance();



Mime
View raw message