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

From Dave Cramer
Subject Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Date
Msg-id CADK3HHJB1MfwxocG-_NHss8RHThJNAA2V9YeFfYb69EfvfRG9g@mail.gmail.com
Whole thread Raw
In response to Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values  (Kevin Grittner <kgrittn@ymail.com>)
List pgsql-jdbc
Kevin,

Thanks, my cut and paste missed that ;)

Dave

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca


On Mon, Jan 28, 2013 at 3:53 PM, Kevin Grittner <kgrittn@ymail.com> wrote:
Dave Cramer <pg@fastcrypt.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

pgsql-jdbc by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Next
From: dmp
Date:
Subject: Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values