This commit is contained in:
Peter Hormanns 2019-12-03 20:17:13 +01:00
parent 5186190ce9
commit 1828646653

View File

@ -157,7 +157,7 @@ public class AutoconfigAutodiscoverServlet extends HttpServlet {
final Query mboxQuery = em.createQuery("SELECT mbox FROM UnixUsers mbox WHERE mbox.name = :target"); final Query mboxQuery = em.createQuery("SELECT mbox FROM UnixUsers mbox WHERE mbox.name = :target");
mboxQuery.setParameter("target", target); mboxQuery.setParameter("target", target);
final Object mboxResult = mboxQuery.getSingleResult(); final Object mboxResult = mboxQuery.getSingleResult();
if (mboxResult == null || !(mboxQuery instanceof UnixUser)) { if (mboxResult == null || !(mboxResult instanceof UnixUser)) {
transaction.close(); transaction.close();
throw new HSAdminException("no unique mailbox found"); throw new HSAdminException("no unique mailbox found");
} }