aboutsummaryrefslogtreecommitdiff
path: root/eidas_modules/authmodule-eIDAS-v2/src
diff options
context:
space:
mode:
authorChristian Kollmann <christian.kollmann@a-sit.at>2021-01-12 15:51:07 +0100
committerChristian Kollmann <christian.kollmann@a-sit.at>2021-01-12 15:51:07 +0100
commiteae2f7b06fc41741863d1ea6ec9c8b6da8a6b8fb (patch)
treeb7762944dc066ba19c59fbd452c58ef2cc57532c /eidas_modules/authmodule-eIDAS-v2/src
parent2e8313758ae4d55274319200aba9226e65f2a82c (diff)
downloadNational_eIDAS_Gateway-eae2f7b06fc41741863d1ea6ec9c8b6da8a6b8fb.tar.gz
National_eIDAS_Gateway-eae2f7b06fc41741863d1ea6ec9c8b6da8a6b8fb.tar.bz2
National_eIDAS_Gateway-eae2f7b06fc41741863d1ea6ec9c8b6da8a6b8fb.zip
Add null check for more safety
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2/src')
-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 3cf73944..aafcd8b9 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
@@ -307,7 +307,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();