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

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>
Cc: Nathaniel Waisbrot <waisbrot(at)highfleet(dot)com>, dmp <danap(at)ttc-cmc(dot)net>, List <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 20:58:23
Message-ID: CADK3HHJB1MfwxocG-_NHss8RHThJNAA2V9YeFfYb69EfvfRG9g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)ymail(dot)com> 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

Browse pgsql-jdbc by date

  From Date Subject
Next Message dmp 2013-01-28 21:03:18 Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Previous Message Kevin Grittner 2013-01-28 20:53:52 Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values