[java-shib-shared] 07/08: Fix null message in log.
Scott Cantor
cantor.2 at osu.edu
Thu Jul 25 17:05:30 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch maint-9.1
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=5f43c1a92c25591c81177336e66067d1d8123335
commit 5f43c1a92c25591c81177336e66067d1d8123335
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed May 22 13:58:53 2024 -0400
Fix null message in log.
---
.../src/main/java/net/shibboleth/shared/security/DataSealer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shib-security/src/main/java/net/shibboleth/shared/security/DataSealer.java b/shib-security/src/main/java/net/shibboleth/shared/security/DataSealer.java
index 686c26e2..1c9f4834 100644
--- a/shib-security/src/main/java/net/shibboleth/shared/security/DataSealer.java
+++ b/shib-security/src/main/java/net/shibboleth/shared/security/DataSealer.java
@@ -300,7 +300,7 @@ public class DataSealer extends AbstractInitializableComponent {
log.error(e.getMessage());
throw new DataSealerException("Exception loading key", e);
} catch (final GeneralSecurityException | IOException | DecoderException | IllegalArgumentException e) {
- log.error("Exception unwrapping data: {}", e.getMessage());
+ log.error("Exception unwrapping data: {}", e.getMessage() != null ? e.getMessage() : e.getClass());
throw new DataSealerException("Exception unwrapping data", e);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list