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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -