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

Improve null checks in drivers with a delegate #1495

Merged
merged 1 commit into from
Jun 24, 2023

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Jun 13, 2023

Q A
Bug fix? yes
New feature? no
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets N/A
License MIT

Split off from #1494

The metadata drivers with delegates inconsistently check for null responses, either the check is made after an assert() or it's not made at all. So this PR ensures we have these null checks and early returns before asserting the metadata object is a specific subclass.

@scyzoryck
Copy link
Collaborator

Thanks for contribution!

@scyzoryck scyzoryck merged commit f87de20 into schmittjoh:master Jun 24, 2023
@mbabker mbabker deleted the improve-null-checks branch June 25, 2023 01:24
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