pgjdbc-ng icon indicating copy to clipboard operation
pgjdbc-ng copied to clipboard

fix for NPE in JDBCTypeMetaData

Open alex0x08 opened this issue 1 year ago • 0 comments

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

alex0x08 avatar Dec 17 '23 19:12 alex0x08