NullPointerException
at SingleHostConnectionFunction#getCredentials
when configuration password is null
#622
Labels
type: regression
A regression from a previous release
Milestone
Bug Report
This is a regression from #613
Versions
Current Behavior
The PostgresqlConnectionConfiguration.Builder allows to build a configuration where the password field is null (instead of an empty publisher), it blows up when SingleHostConnectionFunction#getCredentials is called as it tries to create a Mono with null value.
Stack trace
Expected behavior/code
To not fail if a password is not set to the builder given that the field used to be nullable and the change from #613 changed the behaviour making it not compatible with existing code from SpringBoot.
Possible Solution
The builder could assign a default value (
Mono.empty()
) to the password fieldThe text was updated successfully, but these errors were encountered: