[java-opensaml] 03/05: IDP-2069 Null Handling Task

Rod Widdowson rdw at steadingsoftware.com
Thu Apr 20 14:00:21 UTC 2023


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

rdw pushed a commit to branch main
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=7191d61032466862411d05712e4cc395a94d7868

commit 7191d61032466862411d05712e4cc395a94d7868
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Apr 19 13:58:18 2023 +0100

    IDP-2069 Null Handling Task
    
    https://shibboleth.atlassian.net/browse/IDP-2069
    
    Remove one error from opensaml-xmlsec-impl
---
 .../xmlsec/encryption/support/tests/SimpleDecryptionTest.java         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/encryption/support/tests/SimpleDecryptionTest.java b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/encryption/support/tests/SimpleDecryptionTest.java
index abb1e47a4..6ed8d4685 100644
--- a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/encryption/support/tests/SimpleDecryptionTest.java
+++ b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/encryption/support/tests/SimpleDecryptionTest.java
@@ -164,7 +164,7 @@ public class SimpleDecryptionTest extends XMLObjectBaseTestCase {
         } catch (DecryptionException e) {
             Assert.fail("Error on decryption of EncryptedData to element: " + e);
         }
-        
+        assert decryptedXMLObject!=null;
         assertXMLEquals(targetDOM, decryptedXMLObject);
         
     }
@@ -205,6 +205,7 @@ public class SimpleDecryptionTest extends XMLObjectBaseTestCase {
         } catch (DecryptionException e) {
             Assert.fail("Error on decryption of EncryptedData to element: " + e);
         }
+        assert decryptedXMLObject!=null;
         
         assertXMLEquals(targetDOM, decryptedXMLObject);
         
@@ -482,6 +483,7 @@ public class SimpleDecryptionTest extends XMLObjectBaseTestCase {
             Assert.fail("Error on decryption of EncryptedData to element: " + e);
         }
         
+        assert decryptedXMLObject!=null;
         assertXMLEquals(targetDOM, decryptedXMLObject);
         
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list