Re: NPE in creating a SQLException
От | Michael Stephenson |
---|---|
Тема | Re: NPE in creating a SQLException |
Дата | |
Msg-id | Pine.LNX.4.44.0307291616140.29248-100000@tirin.openworld.co.uk обсуждение исходный текст |
Ответ на | NPE in creating a SQLException (Peter Royal <proyal@pace2020.com>) |
Список | 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.
В списке pgsql-jdbc по дате отправления: