Calendar lastEditDate = Calendar.getInstance();
lastEditDate.setTime(rs.getDate("LAST_EDIT_DATE"));
productGroup.setLastEditDate(lastEditDate);
我有一个 NullPointerException:
[ERROR] [16.08.2013 11:30:43] [ DatabaseWorker] = [admin][Get product groups]
java.lang.NullPointerException
at java.util.Calendar.setTime(Calendar.java:1106)
at ro.gs.service.catering.dao.ProductGroupDAO$3.doWork(ProductGroupDAO.java:220)
有人能告诉我为什么我会得到这个例外吗?