Skip to content

Add null check when closing result sets#18

Merged
vogti merged 5 commits intomasterfrom
add-null-check
Dec 28, 2024
Merged

Add null check when closing result sets#18
vogti merged 5 commits intomasterfrom
add-null-check

Conversation

@gartens
Copy link
Contributor

@gartens gartens commented Dec 24, 2024

When a PolyphenyResultSet is created for a meta data result (such as a list of tables etc.) the statement field is set to null. So check for null before trying to notify the non-existent statement. Also add a test that would have exposed this issue.

Copy link
Member

@vogti vogti left a comment

Choose a reason for hiding this comment

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

Thx, @gartens, for this PR!

@vogti vogti merged commit d52c3ec into master Dec 28, 2024
2 checks passed
@vogti vogti deleted the add-null-check branch December 28, 2024 11:02
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