From 67eacf007e3c57cd2d79fcf7be6750e34a27dec7 Mon Sep 17 00:00:00 2001 From: Gabriele Zigurella Date: Mon, 27 Feb 2023 12:45:43 +0100 Subject: [PATCH] fix: handle null FileEntry on riparaPermessiAllegatiManuali method --- .../WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java index 1aec819a..f27d71af 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java @@ -1468,9 +1468,11 @@ public class SismicaUtil { } catch (Exception e) { _log.error(e,e) } - corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " - + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento - + StringPool.SPACE + documento.getPrimaryKey()); + if(Validator.isNotNull(fileEntry)){ + corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " + + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento + + StringPool.SPACE + documento.getPrimaryKey()); + } } } inizio += SLICE;