airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [26/57] airavata git commit: fixing get all users error
Date Thu, 28 Jul 2016 17:45:40 GMT
fixing get all users error


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

Branch: refs/heads/develop
Commit: 6148dabfbb3e4d1c794988b23018596b06a3e361
Parents: 52dc070
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Mon Jul 11 12:38:21 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Mon Jul 11 12:38:21 2016 -0400

----------------------------------------------------------------------
 .../registry/core/experiment/catalog/ExpCatResourceUtils.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/6148dabf/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/ExpCatResourceUtils.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/ExpCatResourceUtils.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/ExpCatResourceUtils.java
index 6533ab2..b67abe9 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/ExpCatResourceUtils.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/ExpCatResourceUtils.java
@@ -384,8 +384,8 @@ public class ExpCatResourceUtils {
             em.getTransaction().commit();
             em.close();
             ArrayList<String> usernameList = new ArrayList<>();
-            if(usernameList != null) {
-                for (int i = 0; i<usernameList.size(); i++){
+            if(users != null) {
+                for (int i = 0; i<users.size(); i++){
                     usernameList.add(users.get(i).getUserName());
                 }
             }


Mime
View raw message