java - Null Pointer Exception Calendar.setTime -
calendar lasteditdate = calendar.getinstance(); lasteditdate.settime(rs.getdate("last_edit_date")); productgroup.setlasteditdate(lasteditdate);
i've got nullpointerexception:
[error] [16.08.2013 11:30:43] [ databaseworker] = [admin][get product groups] java.lang.nullpointerexception @ java.util.calendar.settime(calendar.java:1106) @ ro.gs.service.catering.dao.productgroupdao$3.dowork(productgroupdao.java:220)
can tell me why have got exception?
getdate(string columnlabel)
returns
the column value; if value sql null, value returned null
does table allow nulls in column?
Comments
Post a Comment