[java-identity-provider] branch main updated: Guard use of empty regex.
Scott Cantor
cantor.2 at osu.edu
Thu Oct 29 15:42:46 UTC 2020
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=9fc0d281f8efba4b54a9c5480ad8dabc34947270
The following commit(s) were added to refs/heads/main by this push:
new 9fc0d281f Guard use of empty regex.
9fc0d281f is described below
commit 9fc0d281f8efba4b54a9c5480ad8dabc34947270
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Oct 29 11:42:43 2020 -0400
Guard use of empty regex.
---
.../net/shibboleth/idp/consent/logic/impl/AttributePredicate.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/idp-consent-impl/src/main/java/net/shibboleth/idp/consent/logic/impl/AttributePredicate.java b/idp-consent-impl/src/main/java/net/shibboleth/idp/consent/logic/impl/AttributePredicate.java
index b56751b16..d2f35819c 100644
--- a/idp-consent-impl/src/main/java/net/shibboleth/idp/consent/logic/impl/AttributePredicate.java
+++ b/idp-consent-impl/src/main/java/net/shibboleth/idp/consent/logic/impl/AttributePredicate.java
@@ -85,7 +85,11 @@ public class AttributePredicate extends AbstractInitializableComponent implement
public void setAttributeIdMatchExpression(@Nullable final Pattern expression) {
ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
- matchExpression = expression;
+ if (expression != null && !expression.pattern().isEmpty()) {
+ matchExpression = expression;
+ } else {
+ matchExpression = null;
+ }
}
/** {@inheritDoc} */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list