aboutsummaryrefslogtreecommitdiff
path: root/id/server
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2016-09-30 09:39:16 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2016-09-30 09:39:16 +0200
commit140174ab590ec058e6c57dab60b52acc3d929963 (patch)
tree593142e9beb06b0adac943be2392e17d8daf03de /id/server
parentd025c38a426e22b0d1ccfbb4558ff6ce78ac1d0b (diff)
downloadmoa-id-spss-140174ab590ec058e6c57dab60b52acc3d929963.tar.gz
moa-id-spss-140174ab590ec058e6c57dab60b52acc3d929963.tar.bz2
moa-id-spss-140174ab590ec058e6c57dab60b52acc3d929963.zip
fix possible IndexOutOfBoundException
Diffstat (limited to 'id/server')
-rw-r--r--id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java b/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java
index ea8e88278..3522a16fd 100644
--- a/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java
+++ b/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java
@@ -135,7 +135,9 @@ public class GenerateAuthnRequestTask extends AbstractAuthServletTask {
// load SingleSignOnService Endpoint from configuration, if Metadata contains no information
// FIXME convenience function for not standard conform metadata
if (MiscUtil.isEmpty(destination)) {
- destination = cpeps.getPepsURL().toString().split(";")[1].trim();
+ String[] splitString = cpeps.getPepsURL().toString().split(";");
+ if (splitString.length > 1)
+ destination = cpeps.getPepsURL().toString().split(";")[1].trim();
if (MiscUtil.isNotEmpty(destination))
Logger.debug("Use eIDAS node destination URL:" + destination + " from configuration");