Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values

From: dmp <danap(at)ttc-cmc(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Date: 2013-01-28 21:03:18
Message-ID: 5106E796.8070204@ttc-cmc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I think that is what threw me. You are still going to need to
have Nathaniel's patch in case someone does try to throw in a bogus
properties that ends up null even thought the url is correct.

danap.

Kevin Grittner wrote:
> Dave Cramer<pg(at)fastcrypt(dot)com> wrote:
>
>> My proposed patch is this
>>
>>
>> if (url.startsWith("jdbc:postgresql:")) {
>> return null;
>> }
>>
>> Right at the top of getConnection, before we do any real work.
>>
>>
>> Thoughts ?
>
> Shouldn't that have a bang to reverse the logic?
>
> -Kevin

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2013-01-28 21:08:44 Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Previous Message Dave Cramer 2013-01-28 20:58:23 Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values