[java-opensaml] branch main updated: OSJ-328: NPE in IndexedXMLObjectChildrenList

Brent Putman putmanb at georgetown.edu
Wed Mar 3 03:23:53 UTC 2021


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

putmanb 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=c3bf5797bf76f67248767b239192bd63e3c740d2

The following commit(s) were added to refs/heads/main by this push:
       new  c3bf5797b OSJ-328: NPE in IndexedXMLObjectChildrenList
c3bf5797b is described below

commit c3bf5797bf76f67248767b239192bd63e3c740d2
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Tue Mar 2 21:50:33 2021 -0500

    OSJ-328: NPE in IndexedXMLObjectChildrenList
---
 .../java/org/opensaml/core/xml/util/IndexedXMLObjectChildrenList.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opensaml-core/src/main/java/org/opensaml/core/xml/util/IndexedXMLObjectChildrenList.java b/opensaml-core/src/main/java/org/opensaml/core/xml/util/IndexedXMLObjectChildrenList.java
index 4e428bd37..b8251b993 100644
--- a/opensaml-core/src/main/java/org/opensaml/core/xml/util/IndexedXMLObjectChildrenList.java
+++ b/opensaml-core/src/main/java/org/opensaml/core/xml/util/IndexedXMLObjectChildrenList.java
@@ -108,7 +108,7 @@ public class IndexedXMLObjectChildrenList<ElementType extends XMLObject> extends
      * 
      * @param index the index to check
      */
-    protected void checkAndCreateIndex(@Nonnull final QName index) {
+    protected synchronized void checkAndCreateIndex(@Nonnull final QName index) {
         if (!objectIndex.containsKey(index)) {
             objectIndex.put(index, new LazyList<ElementType>());
         }

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


More information about the commits mailing list