diff --git a/sigla-ejb/src/main/java/it/cnr/contab/gestiva00/actions/LiquidazioneDefinitivaIvaAction.java b/sigla-ejb/src/main/java/it/cnr/contab/gestiva00/actions/LiquidazioneDefinitivaIvaAction.java
index d1b1d3612d..f473569360 100644
--- a/sigla-ejb/src/main/java/it/cnr/contab/gestiva00/actions/LiquidazioneDefinitivaIvaAction.java
+++ b/sigla-ejb/src/main/java/it/cnr/contab/gestiva00/actions/LiquidazioneDefinitivaIvaAction.java
@@ -19,6 +19,8 @@
import java.math.BigDecimal;
import java.sql.Timestamp;
+import java.util.Optional;
+
import it.cnr.contab.gestiva00.bp.LiquidazioneDefinitivaIvaBP;
import it.cnr.contab.gestiva00.bp.LiquidazioneIvaBP;
import it.cnr.contab.gestiva00.core.bulk.IPrintable;
@@ -228,7 +230,10 @@ protected it.cnr.jada.action.Forward setDataDaA(
try {
int esercizio = stampaBulk.getEsercizio().intValue();
- int meseIndex = ((Integer)stampaBulk.getMesi_int().get(stampaBulk.getMese())).intValue();
+ int meseIndex = Optional.ofNullable(stampaBulk.getMese())
+ .map(s -> {
+ return ((Integer)stampaBulk.getMesi_int().get(s)).intValue();
+ }).orElse(12);
java.util.GregorianCalendar gc = getGregorianCalendar();
gc.set(java.util.Calendar.DAY_OF_MONTH, 1);
gc.set(java.util.Calendar.YEAR, esercizio);
diff --git a/sigla-ejb/src/main/resources/it/cnr/contab/gestiva00/core/bulk/Liquidazione_definitiva_ivaVBulkInfo.xml b/sigla-ejb/src/main/resources/it/cnr/contab/gestiva00/core/bulk/Liquidazione_definitiva_ivaVBulkInfo.xml
index 3c0c8c5d42..e588f65a10 100644
--- a/sigla-ejb/src/main/resources/it/cnr/contab/gestiva00/core/bulk/Liquidazione_definitiva_ivaVBulkInfo.xml
+++ b/sigla-ejb/src/main/resources/it/cnr/contab/gestiva00/core/bulk/Liquidazione_definitiva_ivaVBulkInfo.xml
@@ -275,6 +275,15 @@
+
+ <% bp.getController().writeFormLabel(out,"esercizio");%> + | +<% bp.getController().writeFormInput(out,"esercizio");%> | +
<% bp.getController().writeFormLabel(out,"mese");%> | @@ -54,6 +59,8 @@<% bp.getController().writeFormInput(out,null,"data_da",false,null,"");%> | +
<% bp.getController().writeFormLabel(out,"data_a");%> |