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

Add null safety to PostGISCodec #2260

Merged
merged 1 commit into from Jan 26, 2023
Merged

Conversation

tprebs
Copy link
Contributor

@tprebs tprebs commented Jan 26, 2023

If a column contained a null geometry the registered Geometry ColumnMapper (from PostGISCodec) would throw a NPE while trying to convert the null value to a byte array.

If a null value is now processed by the ColumnMapper, a null value is returned

If a column contained a null geometry the registered Geometry ColumnMapper would throw a NPE while trying to convert the null value to a byte array. If a null value is now processed by the ColumnMapper a null value is returned
@sonarcloud
Copy link

sonarcloud bot commented Jan 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@stevenschlansker stevenschlansker left a comment

Choose a reason for hiding this comment

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

Thank you for the improvement!

@stevenschlansker stevenschlansker merged commit af08340 into jdbi:master Jan 26, 2023
stevenschlansker added a commit that referenced this pull request Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants