results = query.list();
if (results == null) {
results = new ArrayList<>();
}
log.debug("Addresses found: " + results.size());
<BUG>}
} finally {</BUG>
DaoUtils.closeSession(session);
}
return results;

results = query.list();
if (results == null) {
results = new ArrayList<>();
}
log.debug("Addresses found: " + results.size());
} catch (Exception e) {
log.error("Exception while getting the list of addresses: ", e);
} finally {
DaoUtils.closeSession(session);
}
return results;
