Skip to content

Prevent NullPointerException being thrown when constructing log message#520

Closed
topbadger wants to merge 1 commit into
apache:masterfrom
topbadger:fix/logging-npe
Closed

Prevent NullPointerException being thrown when constructing log message#520
topbadger wants to merge 1 commit into
apache:masterfrom
topbadger:fix/logging-npe

Conversation

@topbadger
Copy link
Copy Markdown

#515 added additional logging information about the connection being released. However the log exists in a branch where the connection may be null, thus causing a NPE to be thrown under those circumstances.

This PR accounts for the potential for the connection to be null when constructing the log message.

@ok2c
Copy link
Copy Markdown
Member

ok2c commented Dec 10, 2023

@topbadger Thank you for reporting the problem. Corrected by 9e3d79b.

@ok2c ok2c closed this Dec 10, 2023
@topbadger topbadger deleted the fix/logging-npe branch December 10, 2023 11:50
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.

2 participants