Sfoglia il codice sorgente

fix: avoid duplicate workflow if ControlloPratica is missing

fix/NullPointer-Exceptions
Gabriele Zigurella 2 anni fa
parent
commit
71a2bace72
  1. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java

2
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())) if (tokens.contains(controllo.getControlloPraticaId()))
tokenCount++; tokenCount++;
} }
if (0 == tokenCount) { if (0 == tokenCount && Validator.isNotNull(last)) {
ServiceContext serviceContext = new ServiceContext(); ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(last.getCompanyId()); serviceContext.setCompanyId(last.getCompanyId());
serviceContext.setScopeGroupId(last.getGroupId()); serviceContext.setScopeGroupId(last.getGroupId());

Caricamento…
Annulla
Salva