you can always wrap your accesor in a simple try/catch block as in
try
{
 Image logo=null;
  logo = Toolkit.getDefaultToolkit().getImage("images/splash.png");
}
catch(NullPointerException excp)
{
 log.debug("NullPointerException thrown while retreiving image 
images/splash.png");
 System.out.println("NullPointerException thrown while retrieving 
images/splash.png");
}

Anyone else?

M-
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
----- Original Message ----- 
From: "Steve R Burrus" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Sunday, November 12, 2006 5:52 PM
Subject: How do I ........?


>I know that this question of  mine has been asked/answered in this 
> group, but I was wondering how do I go about checking for a null value? 
> I feel the need to do this in a servlet file that incorporates an image 
> into it.
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to