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

Issue #9947 - check that each selector inside of _selectors isn't null before calculating #totalKeys #9962

Merged

Conversation

strogiyotec
Copy link
Contributor

No description provided.

@strogiyotec strogiyotec changed the title Issue #9947 - check that SelectorManager has not null _selectors before calculating #totalKeys Issue #9947 - check that each selector inside of _selectors isn't null before calculating #totalKeys Jun 24, 2023
@strogiyotec
Copy link
Contributor Author

@sbordet thanks for the clarification, I addressed your comments

{
keys += selector.getTotalKeys();
if (selector != null)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Please drop the braces for single line statements.

Also, there is an extra new line at the end of this method, please remove that too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@sbordet sbordet merged commit 283b74a into jetty:jetty-10.0.x Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot invoke "org.eclipse.jetty.io.ManagedSelector.getTotalKeys()" because "selector" is null
2 participants