diff options
Diffstat (limited to 'id/server/moa-id-commons/src')
-rw-r--r-- | id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/validation/TargetValidator.java | 5 |
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()); } |