catch null value of resultset

i have a table with different values and a date (e.g. 523 ; 12.06.2001). i want to read the value and the date, put it in a list and increment the date. now i want to read the value of the new date. it's everything working fine, but when there are no entries with the new date, i get an exception ( java.lang.NumberFormatException: null).

when there are no entries, i just want to increment the date again.

i'm working with an applet and ms sql server 7.

how can i catch this exception ?

thanx !

[550 byte] By [becki_db] at [2007-9-26 3:48:03]
# 1
try{your code}catch(SQLException sqle){}You can also test if the column of the record has a null value first if you don't want to use the exception. I think it's a better solution.
sylvain.barbot at 2007-6-29 12:31:17 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...