Re: getXXX(): Null Pointer Exception

From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
To: 'pgsql-jdbc' <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: getXXX(): Null Pointer Exception
Date: 2002-10-16 07:36:11
Message-ID: 3DAD16EB.5060809@mega-bucks.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Rouyre Frédéric wrote:
>
> I think you have to check with res.next() if your query returns some rows.
>
> Actually, when you got the result set, the row pointer is set *before* the
> first row.

Doh! Thanks, that res.next() fixed it!

Jc

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jean-Christian Imbeault 2002-10-16 07:39:12 Listmaster: do you exist?
Previous Message Jean-Christian Imbeault 2002-10-16 07:27:42 getXXX(): Null Pointer Exception