aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-commons
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-09-10 11:10:43 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-09-10 11:10:43 +0200
commit077054b6e3016e4cfeb6bae501eb52fc62f58208 (patch)
tree590055aecb8c6d7528d7f52da3aa07a17acebac1 /id/server/moa-id-commons
parente9bcc578b0501bc171fe1b6795c57249e9107ae1 (diff)
downloadmoa-id-spss-077054b6e3016e4cfeb6bae501eb52fc62f58208.tar.gz
moa-id-spss-077054b6e3016e4cfeb6bae501eb52fc62f58208.tar.bz2
moa-id-spss-077054b6e3016e4cfeb6bae501eb52fc62f58208.zip
add metadata provider info message if not online-application is found
Diffstat (limited to 'id/server/moa-id-commons')
-rw-r--r--id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java
index 848f4ee07..46d3ca558 100644
--- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java
+++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java
@@ -31,6 +31,8 @@ import org.apache.commons.lang.StringEscapeUtils;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceException;
+
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -221,7 +223,8 @@ public class ConfigurationDBRead {
if (result.size() == 0) {
Logger.trace("No entries found.");
- return null;
+ result = new ArrayList<OnlineApplication>();
+
}
return result;
}