> From: Martin Gainty [mailto:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]