title: Null pointer execption
body: <p>i am facing null pointer exception in hibernate:</p>
  
  <p>org.hibernate.dialect.function.CastFunction.render(CastFunction.java:11)</p>
  
  <p>hibernate code is:
  ("Select  date_format(str_to_date(form.dobDate,'%Y%m%d'),'%M (%Y)') as Month");</p>