Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null bean value exception message confusing [SPR-16961] #21499

Open
spring-projects-issues opened this issue Jun 20, 2018 · 0 comments
Open

Null bean value exception message confusing [SPR-16961] #21499

spring-projects-issues opened this issue Jun 20, 2018 · 0 comments
Labels
in: core status: waiting-for-triage

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jun 20, 2018

Dave Syer opened SPR-16961 and commented

When a @Bean method returns null it becomes non-autowirable, but the exception message only says that there are "no beans" of the required type. In fact there was one, but it was null, and that would be more useful information.


Affects: 5.0.7

Reference URL: spring-projects/spring-boot#13531

Issue Links:

  • #21498 Odd behaviour with null bean instance when an alternative autowire candidate is available
@spring-projects-issues spring-projects-issues added type: bug status: waiting-for-triage in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues removed the type: bug label Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: waiting-for-triage
Projects
None yet
Development

No branches or pull requests

1 participant