Re: NULL VALUES

From: Joe Weinstein (joeNOSPAM_at_bea.com)
Date: 08/12/04


Date: Thu, 12 Aug 2004 14:13:58 -0700
To: Henk Roos <henkr@vippayroll.co.za>


Henk Roos wrote:

> Hi All,
>
> how do I test if a certain field in a resultset has a null value.
>
> I tried the following:
>
> if (r.getString("field") == null) {
>
> }
>
> but it doesn't seem to work. I stll get a NullPointerException.

Show more of the code, and show the line where you get the
exception. That code (you show) should work.

Joe Weinstein at BEA

>
> Thanks
> Henk
>
>


Loading