Re: NPE on ResultSet update
Posted by: Mark Matthews
Date: December 11, 2004 08:43PM

It doesn't seem (from the code that you've pasted) that you have done anything to ensure you're on a valid row! You can only update a row if it's valid (i.e. one of the traversal methods returns true).

If you want to _insert_ data, you need to call moveToInsertRow().

This NPE can only happen if you're not on a valid row...It shouldn't throw an NPE (we'll fix that), but you will instead get a SQLException when it's fixed.


Options: ReplyQuote

Written By
December 11, 2004 07:52PM
December 11, 2004 08:16PM
Re: NPE on ResultSet update
December 11, 2004 08:43PM
December 12, 2004 10:56AM
December 12, 2004 12:13PM
December 12, 2004 02:06PM
December 12, 2004 02:24PM
December 12, 2004 11:07AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.