Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Check interpolated config value is non-null before applying it
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed Jan 29, 2022
1 parent 5f89d9d commit f6e17bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public Configuration getConfiguration( final BeanProperty<?> property )
// support runtime interpolation of @Configuration values
final String uninterpolatedValue = configuration.value();
final String value = interpolate( uninterpolatedValue );
if ( !value.equals( uninterpolatedValue ) )
if ( null != value && !value.equals( uninterpolatedValue ) )
{
return new ConfigurationImpl( configuration.name(), value );
}
Expand Down

0 comments on commit f6e17bf

Please sign in to comment.