Fix NPE in HouseKeeper.stopScavenging#4604
Merged
janbartel merged 2 commits intojetty:jetty-9.4.xfrom Feb 26, 2020
hikoma:jetty-9.4.x-fix-house-keeper-npe
Merged
Fix NPE in HouseKeeper.stopScavenging#4604janbartel merged 2 commits intojetty:jetty-9.4.xfrom hikoma:jetty-9.4.x-fix-house-keeper-npe
janbartel merged 2 commits intojetty:jetty-9.4.xfrom
hikoma:jetty-9.4.x-fix-house-keeper-npe
Conversation
Signed-off-by: Hirotaka Ikoma <hikoma@gmail.com>
janbartel
requested changes
Feb 26, 2020
Contributor
janbartel
left a comment
There was a problem hiding this comment.
Thanks for finding this and submitting a pull request. While your fix will definitely work, I think the root of the problem is that _ownScheduler and _scheduler should both be updated together.
jetty-server/src/main/java/org/eclipse/jetty/server/session/HouseKeeper.java
Show resolved
Hide resolved
Signed-off-by: Hirotaka Ikoma <hikoma@gmail.com>
janbartel
approved these changes
Feb 26, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HouseKeeper.stopScavenging throws NPE when called twice.
To reproduce this issue, call
setIntervalSec(0)before shutting down the server.Signed-off-by: Hirotaka Ikoma hikoma@gmail.com