Re: Ang. Need Help w. Null Pointer Exception.

2006-08-30 Thread David Smith
Simply compare to the key word null: if ( is != null ) { while ( is.read..etc.) { } } --David Steve R Burrus wrote: yes the while loop is on line number 19 okay. Please forgive me for my ignorance about this, but I was wondering how I should go about doing that check for a non-null

Re: Ang. Need Help w. Null Pointer Exception.

2006-08-30 Thread Steve R Burrus
yes the while loop is on line number 19 okay. Please forgive me for my ignorance about this, but I was wondering how I should go about doing that check for a non-null value?? [EMAIL PROTECTED] wrote: Is the while... line number 19? If so make atest that is != null before you continue. Regard

Re: Need Help w. Null Pointer Exception.

2006-08-30 Thread David Smith
getResourceAsStream() will return null if the requested resource is not available. Keep in mind that getRequestAsStream() is rooted to your webapp, so the requested image needs to be found relative to the top level of your web application. --David Steve R Burrus wrote: I need some pretty im

Re: Need Help w. Null Pointer Exception.

2006-08-29 Thread Edoardo Panfili
Steve R Burrus ha scritto: I need some pretty immediate help/assistance with always getting a NullPointerException Java exception when I try to view a particular image in my favorite web browser!!! The line of text in my servlet file which is, I think, problemmatic is a while loop. Well here is

Ang. Need Help w. Null Pointer Exception.

2006-08-29 Thread nils-olov . fransson
Is the while... line number 19? If so make atest that is != null before you continue. Regards Nils-Olov Fransson - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Need Help w. Null Pointer Exception.

2006-08-29 Thread Steve R Burrus
I need some pretty immediate help/assistance with always getting a NullPointerException Java exception when I try to view a particular image in my favorite web browser!!! The line of text in my servlet file which is, I think, problemmatic is a while loop. Well here is my entire servlet file for