title: Null Pointer Exception Calendar.setTime
body: <pre><code>  Calendar lastEditDate = Calendar.getInstance();
                          lastEditDate.setTime(rs.getDate("LAST_EDIT_DATE"));
                          productGroup.setLastEditDate(lastEditDate);
  </code></pre>
  
  <p>I've got a NullPointerException:</p>
  
  <pre><code>[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)
  </code></pre>
  
  <p>Can somebody tell me why have I got this exception?</p>