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

Empty properties loaded from config should be considered null #62

Closed
bbottema opened this issue Jan 27, 2017 · 1 comment
Closed

Empty properties loaded from config should be considered null #62

bbottema opened this issue Jan 27, 2017 · 1 comment
Labels
Milestone

Comments

@bbottema
Copy link
Owner

When a property is empty in the config is empty but not null, currently this value is being considered, but not parsed to the proper type. This could result in ClassCast exceptions if the target type is not a String. Since empty strings are never meaningful in Simple Java Mail, this should be considered as a null-value.

The result then is either the default value passed as extra argument or null.

@bbottema bbottema changed the title Empty properties loaded from config should be considered null Empty properties loaded from config should be considered null Jan 27, 2017
@bbottema bbottema added this to the 4.1.3 milestone Jan 28, 2017
@bbottema
Copy link
Owner Author

Released in 4.1.3.

@bbottema bbottema added the bug label Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant