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
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
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
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;
> }
>
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
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.