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

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: Dave Cramer <pg(at)fastcrypt(dot)com>, Nathaniel Waisbrot <waisbrot(at)highfleet(dot)com>
Cc: 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:53:52
Message-ID: 1359406432.56292.YahooMailNeo@web162904.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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 20:58:23 Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Previous Message Nathaniel Waisbrot 2013-01-28 20:50:08 Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values