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

Check for null lockHandle before using #896

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

feordin
Copy link
Contributor

@feordin feordin commented Dec 15, 2023

Description

Update the check for the lockHandle being NULL before the using in SchemaInitializer. If the lockHandle is null, and we pass in a NULL value to the using () clause, this can result in a Null Ref exception when .Net disposes of the resources from the using.

Related issues

Addresses [issue AB#113443].

Testing

Describe how this change was tested.

Semver Change

Patch|Skip|Feature|Breaking

@feordin feordin requested review from rbans96 and wsugarman December 15, 2023 01:33
Copy link
Member

@brendankowitz brendankowitz left a comment

Choose a reason for hiding this comment

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

:shipit:

@feordin
Copy link
Contributor Author

feordin commented Jan 2, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@feordin
Copy link
Contributor Author

feordin commented Jan 3, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@feordin feordin merged commit cdd4d1d into main Jan 3, 2024
7 checks passed
@feordin feordin deleted the personal/jaerwin/fix-lockHandleNullCheck branch January 3, 2024 04:43
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