diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-09-30 09:39:16 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-09-30 09:39:16 +0200 |
commit | 140174ab590ec058e6c57dab60b52acc3d929963 (patch) | |
tree | 593142e9beb06b0adac943be2392e17d8daf03de /id | |
parent | d025c38a426e22b0d1ccfbb4558ff6ce78ac1d0b (diff) | |
download | moa-id-spss-140174ab590ec058e6c57dab60b52acc3d929963.tar.gz moa-id-spss-140174ab590ec058e6c57dab60b52acc3d929963.tar.bz2 moa-id-spss-140174ab590ec058e6c57dab60b52acc3d929963.zip |
fix possible IndexOutOfBoundException
Diffstat (limited to 'id')
-rw-r--r-- | id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java | 4 |
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"); |