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

Don't set message and logger to null #30

Merged
merged 1 commit into from
Mar 29, 2017
Merged

Don't set message and logger to null #30

merged 1 commit into from
Mar 29, 2017

Conversation

chunyang
Copy link
Contributor

If message and logger are set to null, when JRebel (or other class reloading tool) reloads jersey resources, the Reporter is run again and there is a NullPointerException due to message (and logger) being null after the last time report() was called.

This patch removes the code that sets logger to null and assigns a new instance of StringBuilder to message instead of setting it to null.

Fixes #29

If message and logger are set to null, when JRebel reloads
jersey resources, the Reporter is run again and there is a
NullPointerException due to `message` (and `logger`) being
null after the last time `report()` was called.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 97.284% when pulling 3bff488 on chunyang:null-reporter-message into 687613a on xvik:master.

@xvik xvik merged commit 55e5954 into xvik:master Mar 29, 2017
@xvik
Copy link
Owner

xvik commented Mar 29, 2017

Thank you!

@chunyang chunyang deleted the null-reporter-message branch March 29, 2017 06:57
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.

3 participants