aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-commons/src/main/java/at/gv
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2015-09-02 17:06:24 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2015-09-02 17:06:24 +0200
commitaa1dda4e14e7aebd3ec0df5e50493d273a65d999 (patch)
treea92576ddbc803dc640e2bf3e94cef508159b1663 /id/server/moa-id-commons/src/main/java/at/gv
parentbf97a44c97eac39401200cc2e57f6aba08e2008b (diff)
downloadmoa-id-spss-aa1dda4e14e7aebd3ec0df5e50493d273a65d999.tar.gz
moa-id-spss-aa1dda4e14e7aebd3ec0df5e50493d273a65d999.tar.bz2
moa-id-spss-aa1dda4e14e7aebd3ec0df5e50493d273a65d999.zip
fix problem with private service applications and target friendlyname
Diffstat (limited to 'id/server/moa-id-commons/src/main/java/at/gv')
-rw-r--r--id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/validation/TargetValidator.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/validation/TargetValidator.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/validation/TargetValidator.java
index f2f7afcf8..aeccfe608 100644
--- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/validation/TargetValidator.java
+++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/validation/TargetValidator.java
@@ -88,6 +88,9 @@ public class TargetValidator {
}
public static String getTargetFriendlyName(String target) {
+ if (MiscUtil.isEmpty(target))
+ return null;
+
String name = targetList.get(target.toUpperCase());
if (MiscUtil.isNotEmpty(name))
@@ -97,6 +100,8 @@ public class TargetValidator {
}
public static boolean isValidTarget(String target) {
+ if (MiscUtil.isEmpty(target))
+ return false;
return targetList.containsKey(target.toUpperCase());
}