diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/CustomHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/CustomHibernateDAO.java index 749dd315d..367c8d405 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/CustomHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/CustomHibernateDAO.java @@ -39,6 +39,6 @@ public class CustomHibernateDAO extends GenericHibernateDAO c.add(Restrictions.ilike("chave", chave)); - return (Custom) c.uniqueResult(); + return c.list().isEmpty() ? null : (Custom) c.list().get(0); } }