Skip to content

Fix disposing SessionIdLoggingContext if CheckAndUpdateSessionStatus is failed #1462

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

Merged
merged 1 commit into from
Nov 30, 2017

Conversation

hazzik
Copy link
Member

@hazzik hazzik commented Nov 30, 2017

No description provided.

@hazzik
Copy link
Member Author

hazzik commented Nov 30, 2017

This will go to 5.0.3

@hazzik hazzik force-pushed the process-helper-fix branch from 7349af8 to 7f84042 Compare November 30, 2017 02:33
@hazzik hazzik changed the base branch from master to 5.0.x November 30, 2017 02:34
@hazzik hazzik merged commit 63dee05 into nhibernate:5.0.x Nov 30, 2017
@hazzik hazzik deleted the process-helper-fix branch November 30, 2017 02:35
}

public void Dispose()
{
_context.Dispose();
Copy link
Member

Choose a reason for hiding this comment

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

If disposed is called multiple times, this will cause a null ref. We need a ?. here.

@fredericDelaporte
Copy link
Member

Thanks for the fix. The additional point I have mentioned should be fixed in 5.1 I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants