You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2016/03/11 07:57:26 UTC

[10/16] airavata git commit: checking set archive is null

checking set archive is null


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

Branch: refs/heads/master
Commit: cf4f3f596e755e71d030a063d4dafa7c5a050835
Parents: 75fb3b3
Author: scnakandala <su...@gmail.com>
Authored: Thu Mar 10 12:40:54 2016 -0500
Committer: scnakandala <su...@gmail.com>
Committed: Thu Mar 10 12:40:54 2016 -0500

----------------------------------------------------------------------
 .../registry/core/experiment/catalog/resources/Utils.java      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/cf4f3f59/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/Utils.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/Utils.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/Utils.java
index 1a6c4e2..595bc63 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/Utils.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/Utils.java
@@ -425,7 +425,11 @@ public class Utils {
             experimentResource.setGatewayInstanceId(o.getGatewayInstanceId());
             experimentResource.setEnableEmailNotification(o.getEnableEmailNotification());
             experimentResource.setEmailAddresses(o.getEmailAddresses());
-            experimentResource.setArchive(o.getArchive());
+            if(o.getArchive() == null){
+                experimentResource.setArchive(false);
+            }else {
+                experimentResource.setArchive(o.getArchive());
+            }
         }
         return experimentResource;
     }