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
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
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
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
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
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