Skip to content

Commit

Permalink
Remove nulls from collected bean definition refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Moss committed Sep 21, 2023
1 parent 84ff6a5 commit 4846e62
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1751,6 +1751,7 @@ protected List<BeanDefinitionReference> resolveBeanDefinitionReferences() {
final SoftServiceLoader<BeanDefinitionReference> definitions = SoftServiceLoader.load(BeanDefinitionReference.class, classLoader);
beanDefinitionReferences = new ArrayList<>(300);
definitions.collectAll(beanDefinitionReferences, BeanDefinitionReference::isPresent);
beanDefinitionReferences.removeIf(Objects::isNull);
}
return beanDefinitionReferences;
}
Expand Down

0 comments on commit 4846e62

Please sign in to comment.