airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [10/16] airavata git commit: checking set archive is null
Date Fri, 11 Mar 2016 06:57:26 GMT
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 <supun.nakandala@gmail.com>
Authored: Thu Mar 10 12:40:54 2016 -0500
Committer: scnakandala <supun.nakandala@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;
     }


Mime
View raw message