Add check for empty attributes list as well as null, in DelegatingMethodSecurityMetadataSource

This commit is contained in:
Luke Taylor 2011-08-19 15:23:02 -07:00
parent d6b7b52a79
commit 8ce6c73802
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public final class DelegatingMethodSecurityMetadataSource extends AbstractMethod
Collection<ConfigAttribute> attributes = null;
for (MethodSecurityMetadataSource s : methodSecurityMetadataSources) {
attributes = s.getAttributes(method, targetClass);
if (attributes != null) {
if (attributes != null && !attributes.isEmpty()) {
break;
}
}