tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: How do I ........?
Date Mon, 13 Nov 2006 20:30:24 GMT
> From: Martin Gainty [mailto:mgainty@hotmail.com] 
> Subject: Re: How do I ........?
> 
> the instant you execute code where a variable is NULL you 
> will  throw NullPointerException

Absolute bullshit.

> try
> {
>  if( in == null) System.out.println("This statement will 
> never be executed as NullPointerException will be thrown");
> }
> catch(NullPointerException npe)
> {
>   System.out.println("variable in has thrown 
> NullPointerException so something about that here");
> }

Martin, did you actually try running your example?  What's your
explanation for the "never be execute" statement being printed out?

Please stop polluting the mailing list with erroneous and irrelevant
information.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message