[java-shib-shared] branch main updated: Fix null message in log.

Scott Cantor cantor.2 at osu.edu
Wed May 22 17:58:56 UTC 2024


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-shib-shared.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=fa0b1d03558ed334ff2e26947ef489a4b0b1d54a

The following commit(s) were added to refs/heads/main by this push:
     new fa0b1d03 Fix null message in log.
fa0b1d03 is described below

commit fa0b1d03558ed334ff2e26947ef489a4b0b1d54a
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