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

[WFCORE-5520] Avoid Nullpointer (host-controller) #4694

Merged

Conversation

boris-unckel
Copy link
Contributor

@boris-unckel boris-unckel force-pushed the WFCORE-5520_null_deref_hostcontroller branch from e5818a7 to 1a6e3d7 Compare August 1, 2021 09:14
@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Aug 1, 2021
if (localName == null) {
return null;
}
return MAP.get(localName.toLowerCase());
Copy link
Collaborator

@yersan yersan Aug 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is introducing an unexpected behavior change.

For example, if localName was something different of null and MAP.get(localName.toLowerCase()) returns null, this method was returning DirectoryGrouping.valueOf(localName.toUpperCase(Locale.ENGLISH)), but now it will return null.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yersan Hi Yeray, thanks for your feedback. It's fixed. Could you review and approve, please?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, @boris-unckel, thanks!

@boris-unckel boris-unckel force-pushed the WFCORE-5520_null_deref_hostcontroller branch from 1a6e3d7 to 927421a Compare August 21, 2021 11:15
@yersan yersan added the ready-for-merge This PR is ready to be merged and fulfills all requirements label Aug 31, 2021
@darranl darranl mentioned this pull request Sep 11, 2021
@bstansberry bstansberry merged commit e4d8ee0 into wildfly:main Sep 11, 2021
@boris-unckel boris-unckel deleted the WFCORE-5520_null_deref_hostcontroller branch September 11, 2021 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-ok Dependencies have been checked, and there are no significant changes ready-for-merge This PR is ready to be merged and fulfills all requirements
Projects
None yet
3 participants