Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzvsk-0006aC-6j for pgsql-jdbc@arkaria.postgresql.org; Mon, 28 Jan 2013 21:04:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tzvsi-00063j-Gj for pgsql-jdbc@arkaria.postgresql.org; Mon, 28 Jan 2013 21:04:44 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzvsh-00063d-MQ for pgsql-jdbc@postgresql.org; Mon, 28 Jan 2013 21:04:43 +0000 Received: from outbound.vnet-inc.com ([216.146.104.103]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzvse-0004L1-EK for pgsql-jdbc@postgresql.org; Mon, 28 Jan 2013 21:04:43 +0000 Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id 6ED3058EE for ; Mon, 28 Jan 2013 14:04:40 -0700 (MST) Message-ID: <5106E796.8070204@ttc-cmc.net> Date: Mon, 28 Jan 2013 14:03:18 -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: 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> <1359406432.56292.YahooMailNeo@web162904.mail.bf1.yahoo.com> In-Reply-To: <1359406432.56292.YahooMailNeo@web162904.mail.bf1.yahoo.com> 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 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 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 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc