Hi,
A null pointer exception is being given on this line
while (result.next())
I am trying to add an if statment but the compiler is reporting an error.
if (result.next() == null)
operator == cannot be applied to boolean,<nulltype
Dieter Bender - 12 Dec 2004 10:08 GMT
Hi,
if (result == null) should work
Dieter
> Hi,
>
[quoted text clipped - 6 lines]
>
> operator == cannot be applied to boolean,<nulltype
Juha Laiho - 12 Dec 2004 16:32 GMT
bernardpace@yahoo.com (Xarky) said:
>A null pointer exception is being given on this line
> while (result.next())
From the context you can tell that next() returns a boolean, so the return
value cannot be null. This leaves only result as suspect. Why is result
null when you're entering that line?

Signature
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)