You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/07/28 17:45:40 UTC
[26/57] airavata git commit: fixing get all users error
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 <su...@gmail.com>
Authored: Mon Jul 11 12:38:21 2016 -0400
Committer: scnakandala <su...@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());
}
}