K
Kevin Munro
Hello,
How do I handle nulls in my recordset?
try {
myrs.next();
hasBananas=myrs.getString(1);
}
etc... throws a NullPointerException if the database column returns null.
Should I just manage it by exception or is there a better way?
Thanks, Kevin.
How do I handle nulls in my recordset?
try {
myrs.next();
hasBananas=myrs.getString(1);
}
etc... throws a NullPointerException if the database column returns null.
Should I just manage it by exception or is there a better way?
Thanks, Kevin.