[java-shib-attribute] branch main updated: Fix null issue in test.

Scott Cantor cantor.2 at osu.edu
Tue Apr 25 18:05:35 UTC 2023


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

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

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

The following commit(s) were added to refs/heads/main by this push:
     new 90d5e17fe Fix null issue in test.
90d5e17fe is described below

commit 90d5e17fe8e3f1c57005bcfc0023040093934db1
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Apr 25 14:05:32 2023 -0400

    Fix null issue in test.
---
 .../net/shibboleth/idp/attribute/impl/JDBCPairwiseIdStoreTest.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/shib-attribute-impl/src/test/java/net/shibboleth/idp/attribute/impl/JDBCPairwiseIdStoreTest.java b/shib-attribute-impl/src/test/java/net/shibboleth/idp/attribute/impl/JDBCPairwiseIdStoreTest.java
index cdaeb2624..45d4da02e 100644
--- a/shib-attribute-impl/src/test/java/net/shibboleth/idp/attribute/impl/JDBCPairwiseIdStoreTest.java
+++ b/shib-attribute-impl/src/test/java/net/shibboleth/idp/attribute/impl/JDBCPairwiseIdStoreTest.java
@@ -62,7 +62,10 @@ public class JDBCPairwiseIdStoreTest {
     }
     
     @AfterMethod public void teardown() {
-        DatabaseTestingSupport.InitializeDataSource(DELETE_FILE, testSource);
+        if (testSource != null) { 
+            DatabaseTestingSupport.InitializeDataSource(DELETE_FILE, testSource);
+        }
+        testSource = null;
     }
     
     @Test public void initializeAndGetters() throws ComponentInitializationException, IOException {

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


More information about the commits mailing list