From a28637110f3a1dc63d1d420cbe9faf3a227c18ed Mon Sep 17 00:00:00 2001 From: "lucas.taia" Date: Thu, 28 Feb 2019 00:40:35 +0000 Subject: [PATCH] fixes bug#13611 dev:lucas qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@90368 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/dao/hibernate/CustomHibernateDAO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }