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

Fix NPE when Server startup fails #147

Merged
merged 1 commit into from
Apr 20, 2016
Merged

Conversation

trustin
Copy link
Member

@trustin trustin commented Apr 19, 2016

Motivation:

In a certain case where a Server fails to start up, Server.stop0() can
be invoked even before Server.gracefulShutdownHandler is set.

Modifications:

Do not use Optional for simplicity.

Result:

No more NPE

Motivation:

In a certain case where a Server fails to start up, Server.stop0() can
be invoked even before Server.gracefulShutdownHandler is set.

Modifications:

Do not use Optional for simplicity.

Result:

No more NPE
@trustin trustin added the defect label Apr 19, 2016
@trustin trustin added this to the 0.14.0.Final milestone Apr 19, 2016
@trustin
Copy link
Member Author

trustin commented Apr 19, 2016

Build failure is unrelated with this change.

@anuraaga
Copy link
Collaborator

LGTM

@anuraaga anuraaga merged commit 7cf88b0 into line:master Apr 20, 2016
@trustin trustin deleted the fix_server_stop_npe branch April 20, 2016 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants