db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narayanan <V.Naraya...@Sun.COM>
Subject Re: Re-using an existing db and archiving data
Date Wed, 19 Mar 2008 10:40:59 GMT
Jørgen Løland wrote:
> Mark Hiles wrote:
>> Based on what I've read, I'm not going to get the number of results 
>> and store in
>> an array, I'll just use 2 ArrayLists instead..
>> I'm still getting my null pointer exception for some reason. It must be
>> happening inside the rs.next() method when I call it..
If this had been true the stack trace would have printed more 
information I guess. The stack trace stops
at line 308 because rs is null when you call rs.next().

Can you do a null check before the while loop and after executing the 

if(rs == null) {
    System.out.println("it is null");


View raw message