aboutsummaryrefslogtreecommitdiff
path: root/eidas_modules/authmodule-eIDAS-v2
diff options
context:
space:
mode:
authorChristian Kollmann <christian.kollmann@a-sit.at>2021-01-12 15:51:07 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2021-01-15 15:14:23 +0100
commit6fad183dc6332b52cd33fbabeabbae3999b1ac2a (patch)
treea1b29d42dcd84a76eb9c5dd137bbfc902d0eaa35 /eidas_modules/authmodule-eIDAS-v2
parent2d804b8233f9f92feb83c700e7dc6a2bd7f70998 (diff)
downloadNational_eIDAS_Gateway-6fad183dc6332b52cd33fbabeabbae3999b1ac2a.tar.gz
National_eIDAS_Gateway-6fad183dc6332b52cd33fbabeabbae3999b1ac2a.tar.bz2
National_eIDAS_Gateway-6fad183dc6332b52cd33fbabeabbae3999b1ac2a.zip
Add null check for more safety
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2')
-rw-r--r--eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/utils/EidasResponseUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/utils/EidasResponseUtils.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/utils/EidasResponseUtils.java
index d71201ce..bb0545f7 100644
--- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/utils/EidasResponseUtils.java
+++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/utils/EidasResponseUtils.java
@@ -326,7 +326,7 @@ public class EidasResponseUtils {
}
final Triple<String, String, String> eIdentifier =
EidasResponseUtils.parseEidasPersonalIdentifier((String) personalIdObj);
- if (eIdentifier.getThird() == null) {
+ if (eIdentifier == null || eIdentifier.getThird() == null) {
throw new EidasAttributeException("Error processing eIdentifier");
}
return eIdentifier.getThird();