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