Re: NPE in creating a SQLException

From: Michael Stephenson <mstephenson(at)tirin(dot)openworld(dot)co(dot)uk>
To: proyal(at)pace2020(dot)com
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: NPE in creating a SQLException
Date: 2003-07-29 16:27:01
Message-ID: Pine.LNX.4.44.0307291616140.29248-100000@tirin.openworld.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


> > It is the "s.println(this)" that is causing errors... All of this is
> > happening in the constructor, so I guess that is why 'this' is null?
> > I'm not 100% sure and pretty confused by it all :/
>
> But 'this' is null.... which is very weird to me.

'this' isn't null, this.toString() is.

The toString() method used to return 'message' irrespective of whether it
was null.

This looks to have been fixed in CVS on March 8th, now it will return the
empty string if message is null.

Oh, and I'm not sure posting Sun code on here is legal, not everyone will
have agreed to the licence. :)

Michael

--
Web Applications Developer
Open World Ltd, 11 Riverside Court, Riverside Road, Bath, BA2 3DZ.
Tel: +44 1225 444950 Fax: +44 1225 336738 http://www.openworld.co.uk/

CONFIDENTIALITY NOTICE
The information contained in this message is confidential, intended only for
the use of the individual or the entity named as recipient. If the reader of
this message is not that recipient, you are notified that any
dissemination,
distribution or copy of this message is strictly prohibited. If you have
received this message in error, please immediately notify us by telephone on
the number above. Your co-operation is appreciated.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Csaba Nagy 2003-07-29 16:39:18 Re: NPE in creating a SQLException
Previous Message Peter Royal 2003-07-29 16:16:27 Re: NPE in creating a SQLException