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

[master branch] UNDERTOW-1016 Fix potential NPE while dealing with unresolved InetSocketAddress #546

Merged
merged 1 commit into from Aug 22, 2017

Conversation

jaikiran
Copy link
Contributor

@jaikiran jaikiran commented Aug 22, 2017

The commit here fixes the issue reported in https://issues.jboss.org/browse/UNDERTOW-1016.

The commit just reorders the if blocks which check whether an address is unresolved and whether it is a "any" local address, such that it first checks whether the address is unresolved. This prevents the NPE while checking isAnyLocalAddress() since the managementSocketAddress.getAddress(), as per its API contract can return null for unresolved address.

@stuartwdouglas stuartwdouglas merged commit a1845f7 into undertow-io:master Aug 22, 2017
@rhusar
Copy link
Contributor

rhusar commented Aug 22, 2017

Thanks for the fix @jaikiran !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants