HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2019-06-12 bf4e9daaee276fb74a02e4a795510cd6a10a7760
close entitymanager on fail
1 files modified
1 ■■■■ changed files
hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java
@@ -39,6 +39,7 @@
        if (hiveFqdn != null && hiveFqdn.length() == 19 && hiveFqdn.endsWith(".hostsharing.net") && hiveFqdn.startsWith("h")) {
            hiveName = hiveFqdn.substring(0, 3);
        } else {
            em.close();
            throw new ServletException("error in hive parameter");
        }
        final Query hiveQuery = em.createQuery("SELECT h FROM Hives h WHERE h.name = :hive");