Andy Wilkinson opened SPR-15698 and commented

It seems rather odd to allow the condition context to be created with a null registry, or one from which a bean factory cannot be obtained, and yet throw an exception from getBeanFactory() when it's null. I think @Nullable on getBeanFactory() might be better there.


Affects: 5.0 RC2

Reference URL: https://github.com/spring-projects/spring-boot/issues/9584

1 votes, 3 watchers

Comment From: snicoll

Duplicate #21405