[java-plugin-shibd] branch main updated: Fix an index range issue operating on empty lists.
Codeberg
noreply at shibboleth.net
Wed Aug 5 15:22:05 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-plugin-shibd.
View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd/commit/fbdc4811032308761a828866808ef8df1da3681f
The following commit(s) were added to refs/heads/main by this push:
new fbdc481 Fix an index range issue operating on empty lists.
fbdc481 is described below
commit fbdc4811032308761a828866808ef8df1da3681f
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Wed Aug 5 11:21:52 2026 -0400
Fix an index range issue operating on empty lists.
---
sp-server-api/src/main/java/net/shibboleth/sp/ddf/DDF.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sp-server-api/src/main/java/net/shibboleth/sp/ddf/DDF.java b/sp-server-api/src/main/java/net/shibboleth/sp/ddf/DDF.java
index afaaec6..abcf125 100644
--- a/sp-server-api/src/main/java/net/shibboleth/sp/ddf/DDF.java
+++ b/sp-server-api/src/main/java/net/shibboleth/sp/ddf/DDF.java
@@ -1042,7 +1042,11 @@ public class DDF implements Iterable<DDF> {
} else if (current.islist()) {
// Access first element of list, don't advance the path.
assert current.value instanceof List;
- current = ((List<DDF>) current.value).get(0);
+ final List<DDF> contents = (List<DDF>) current.value;
+ if (contents.isEmpty()) {
+ return new DDF();
+ }
+ current = contents.get(0);
if (current == null) {
return new DDF();
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list