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

fix for NPE in JDBCTypeMetaData #599

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

alex0x08
Copy link

Hi,
got this NPE after H2 upgrade to 2.2.222 (latest) version:
pgjdbc-ng-bug

This was taken from "H2 Console" subproject, which I use in combination with your driver. So I observed driver sources and found a place that looks like very simple bug. For sure, there must be more complicated reason for such NPE, but function 'getMaxPrecision()' below has the same check as in PR:
type = type.unwrap(); PGType pgType = PGType.valueOf(type); if (pgType == null) { return 0; }
So hope this is just small and annoying bug, nothing more.
After patch:
pgjdbc-ng-patched

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.

1 participant