> -----Original Message-----
> From: A mailing list about Java Server Pages specification
> and reference
>
> Sorry, I probably should have included an example of what I'm doing.
>
> ---
> resultset = db.execute("Select Textfield, VarcharField From Table");
>
> while (resultset.next()) {
>   textfield = resultset.getObject("Textfield").toString();
>   varcharfield = resultset.getObject("Varcharfield").toString();
> }
>
> resultset.close();

I would guess that either resultset.getObject("Textfield") or
resultset.getObject("Varcharfield") is null and causing your problem - ie
the contents of these columns in your query are in fact NULL. You are then
trying to do a toString() on a null pointer/reference which causes the
error. You need to split the expressions down and do checks for null values.

HTH,

Steve

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to