Re: Issue with PSQL JDBC Driver Null Pointer

2021-07-30 Thread Bhavesh Mistry
Thanks for fixing it. Thanks, Bhavesh On Thu, Jul 29, 2021 at 12:49 PM Dave Cramer wrote: > > > On Thu, 29 Jul 2021 at 15:44, Bhavesh Mistry > wrote: > >> Hi Dave, >> >> It still does not address the NPE issue. If an alias is NULL. What >> should be the behavior? >> >> >> public String getTy

Re: Issue with PSQL JDBC Driver Null Pointer

2021-07-29 Thread Edson Carlos Ericksson Richter
I would do public String getTypeForAlias(String alias) { if (alias==null) return null; // this shall solve NPE on alias.toLowerCase() String type = TYPE_ALIASES.get(alias); if (type != null) { return type; } type = TYPE_ALIASES.get(alias.toLowerCa

Re: Issue with PSQL JDBC Driver Null Pointer

2021-07-29 Thread Bhavesh Mistry
Hi Dave, It still does not address the NPE issue. If an alias is NULL. What should be the behavior? public String getTypeForAlias(String alias) { String type = TYPE_ALIASES.get(alias); if (type != null) { return type; } type = TYPE_ALIASES.get(alias.toLowerCase()) *// NPE STILL HERE*; if (type

Re: Issue with PSQL JDBC Driver Null Pointer

2021-07-29 Thread Dave Cramer
On Thu, 29 Jul 2021 at 15:44, Bhavesh Mistry wrote: > Hi Dave, > > It still does not address the NPE issue. If an alias is NULL. What > should be the behavior? > > > public String getTypeForAlias(String alias) { > String type = TYPE_ALIASES.get(alias); > if (type != null) { > return type; > } >

Re: Issue with PSQL JDBC Driver Null Pointer

2021-07-29 Thread Dave Cramer
On Thu, 29 Jul 2021 at 11:04, Bhavesh Mistry wrote: > Hello, > > I am getting an NPE exception in the JDBC driver 42.2.23. > > When the alias is null, NPE results. Is it possible to handle null value > ? I have filled a bug against RCA > https://github.com/vladmihalcea/hibernate-types/issues/335

Issue with PSQL JDBC Driver Null Pointer

2021-07-29 Thread Bhavesh Mistry
Hello, I am getting an NPE exception in the JDBC driver 42.2.23. When the alias is null, NPE results. Is it possible to handle null value ? I have filled a bug against RCA https://github.com/vladmihalcea/hibernate-types/issues/335. But, I thought that PSQL Driver can handle it more gracefully.