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());