1
0
mirror of https://github.com/sismics/docs.git synced 2025-05-08 02:33:22 +02:00

: fix npe in unauthenticated cases

This commit is contained in:
bgamard 2021-01-21 17:39:01 +01:00
parent 558de7ba3f
commit ea1d5907c1

@ -128,6 +128,9 @@ public class AclDao {
if (SecurityUtil.skipAclCheck(targetIdList)) { if (SecurityUtil.skipAclCheck(targetIdList)) {
return true; return true;
} }
if (targetIdList.isEmpty()) {
return false;
}
EntityManager em = ThreadLocalContext.get().getEntityManager(); EntityManager em = ThreadLocalContext.get().getEntityManager();
StringBuilder sb = new StringBuilder("select a.ACL_ID_C from T_ACL a "); StringBuilder sb = new StringBuilder("select a.ACL_ID_C from T_ACL a ");