Skip to content

Commit 51099f2

Browse files
sgramponeBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:gamsaml20' into beta
1 parent 567e13b commit 51099f2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

gamsaml20/src/main/java/com/genexus/saml20/utils/SamlAssertionUtils.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,14 @@ public static Document loadDocument(String xml) {
5050
}
5151

5252
public static boolean isLogout(Document xmlDoc){
53-
return xmlDoc.getDocumentElement().getLocalName().equals("LogoutResponse");
53+
logger.trace("isLogout");
54+
try {
55+
return xmlDoc.getDocumentElement().getLocalName().equals("LogoutResponse");
56+
}catch (Exception e)
57+
{
58+
logger.error("isLogout", e);
59+
return false;
60+
}
5461
}
5562

5663
public static Document createLogoutRequest(String id, String issuer, String nameID, String sessionIndex, String destination) {

0 commit comments

Comments
 (0)