airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject airavata git commit: Populate process context before access it
Date Mon, 06 Jul 2015 20:45:00 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 1bc3ce8b7 -> 51befd7cc


Populate process context before access it


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/51befd7c
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/51befd7c
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/51befd7c

Branch: refs/heads/master
Commit: 51befd7ccce9828ba72563080b9c27d2176a3405
Parents: 1bc3ce8
Author: Shameera Rathanyaka <shameerainfo@gmail.com>
Authored: Mon Jul 6 16:44:53 2015 -0400
Committer: Shameera Rathanyaka <shameerainfo@gmail.com>
Committed: Mon Jul 6 16:44:53 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/airavata/gfac/impl/GFacWorker.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/51befd7c/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/GFacWorker.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/GFacWorker.java
b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/GFacWorker.java
index 8ae923f..334538d 100644
--- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/GFacWorker.java
+++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/GFacWorker.java
@@ -66,11 +66,11 @@ public class GFacWorker implements Runnable {
     public void run() {
 	    try {
 		    GFacEngine engine = Factory.getGFacEngine();
-		    ProcessType type = getProcessType(processContext);
 		    if (processContext == null) {
 			    processContext = engine.populateProcessContext(processId, gatewayId, tokenId);
 			    isProcessContextPopulated = true;
 		    }
+		    ProcessType type = getProcessType(processContext);
 		    try {
 			    switch (type) {
 				    case NEW:


Mime
View raw message