From 71a2bace7261a204de1ad97eecf7f50a8178d130 Mon Sep 17 00:00:00 2001 From: Gabriele Zigurella Date: Mon, 27 Feb 2023 12:34:53 +0100 Subject: [PATCH] fix: avoid duplicate workflow if ControlloPratica is missing --- .../docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8fafc987..dfb90a8f 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 @@ -960,7 +960,7 @@ public class SismicaUtil { if (tokens.contains(controllo.getControlloPraticaId())) tokenCount++; } - if (0 == tokenCount) { + if (0 == tokenCount && Validator.isNotNull(last)) { ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(last.getCompanyId()); serviceContext.setScopeGroupId(last.getGroupId());