You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Stephen Turner <st...@webreserve.com> on 2000/10/20 09:17:07 UTC

NullPointerException

I am having a lot of trouble with NullPointerException. I'm using the
multipart form servlet class from Jason Hunter with Tomcat. Say I have a
form parameter called "test".
If the form parameter has no value then I get a null pointer exception.
Is there some way around this?

Thanks,
Stephen.


Re: NullPointerException

Posted by Micael Padraig Og mac Grene <ca...@harbornet.com>.
Why don't you want to know if you are having a null pointer?
----- Original Message ----- 
From: Stephen Turner <st...@webreserve.com>
To: <ge...@jakarta.apache.org>
Sent: Friday, October 20, 2000 12:17 AM
Subject: NullPointerException


> I am having a lot of trouble with NullPointerException. I'm using the
> multipart form servlet class from Jason Hunter with Tomcat. Say I have a
> form parameter called "test".
> If the form parameter has no value then I get a null pointer exception.
> Is there some way around this?
> 
> Thanks,
> Stephen.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
> 
> 


Re: NullPointerException

Posted by Micael Padraig Og mac Grene <ca...@harbornet.com>.
1.  Provide default values.
2.  Catch exceptions, etc.
----- Original Message ----- 
From: Stephen Turner <st...@webreserve.com>
To: <ge...@jakarta.apache.org>
Sent: Friday, October 20, 2000 12:17 AM
Subject: NullPointerException


> I am having a lot of trouble with NullPointerException. I'm using the
> multipart form servlet class from Jason Hunter with Tomcat. Say I have a
> form parameter called "test".
> If the form parameter has no value then I get a null pointer exception.
> Is there some way around this?
> 
> Thanks,
> Stephen.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
> 
>