Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TzvZu-0005G9-9c for pgsql-jdbc@arkaria.postgresql.org; Mon, 28 Jan 2013 20:45:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TzvZt-0003L2-QS for pgsql-jdbc@arkaria.postgresql.org; Mon, 28 Jan 2013 20:45:17 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TzvZt-0003Kw-0A for pgsql-jdbc@postgresql.org; Mon, 28 Jan 2013 20:45:17 +0000 Received: from outbound.vnet-inc.com ([216.146.104.103]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TzvZp-00042j-2L for pgsql-jdbc@postgresql.org; Mon, 28 Jan 2013 20:45:15 +0000 Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id F00965A62; Mon, 28 Jan 2013 13:45:12 -0700 (MST) Message-ID: <5106E302.6010004@ttc-cmc.net> Date: Mon, 28 Jan 2013 13:43:46 -0700 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: Dave Cramer , pgsql-jdbc@postgresql.org Subject: Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values References: <74B305A4-D481-4D4C-8E0E-8EBAB50CF584@highfleet.com> <5106C07B.8020800@ttc-cmc.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Nathaniel patch should be fine. I think you have to test the properties Dave as he has done. Its just a matter if you want it the SQLException or return NULL. Did you test this Nathaniel? danap. Dave Cramer 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 ? > > Dave Cramer > > dave.cramer(at)credativ(dot)ca > http://www.credativ.ca -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc