From f5118c686f57300aa6545fe38f2bb908fa0cb718 Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Thu, 31 Oct 2024 10:08:14 +0100 Subject: [PATCH] Check the user which is going to be deleted is not null. --- .../dspace/app/rest/security/ClarinShibbolethLoginFilterIT.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dspace-server-webapp/src/test/java/org/dspace/app/rest/security/ClarinShibbolethLoginFilterIT.java b/dspace-server-webapp/src/test/java/org/dspace/app/rest/security/ClarinShibbolethLoginFilterIT.java index 09d808d2e62d..6cf8c6058d7a 100644 --- a/dspace-server-webapp/src/test/java/org/dspace/app/rest/security/ClarinShibbolethLoginFilterIT.java +++ b/dspace-server-webapp/src/test/java/org/dspace/app/rest/security/ClarinShibbolethLoginFilterIT.java @@ -570,6 +570,7 @@ public void testSuccessFullLoginWithTwoEmails() throws Exception { checkUserIsSignedIn(token); // Find the user by the second email EPerson ePerson = checkUserWasCreated(null, IDP_TEST_EPERSON, secondEmail, null); + assertTrue(Objects.nonNull(ePerson)); deleteShibbolethUser(ePerson); }