Add check for empty attributes list as well as null, in DelegatingMethodSecurityMetadataSource
This commit is contained in:
parent
d6b7b52a79
commit
8ce6c73802
|
@ -53,7 +53,7 @@ public final class DelegatingMethodSecurityMetadataSource extends AbstractMethod
|
||||||
Collection<ConfigAttribute> attributes = null;
|
Collection<ConfigAttribute> attributes = null;
|
||||||
for (MethodSecurityMetadataSource s : methodSecurityMetadataSources) {
|
for (MethodSecurityMetadataSource s : methodSecurityMetadataSources) {
|
||||||
attributes = s.getAttributes(method, targetClass);
|
attributes = s.getAttributes(method, targetClass);
|
||||||
if (attributes != null) {
|
if (attributes != null && !attributes.isEmpty()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue