Aggiunto check in caso last step null in openOrderStep
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2024-12-03 19:02:33 +01:00
parent adf4b286f7
commit b28ebb276c

View File

@@ -314,7 +314,16 @@ public class MesProductionServiceV2 {
rs.close();
ps.close();
Date dataIniz = null;
if (lastStep == null) {
throw new Exception(String.format(
"Errore nella lettura della step. Gestione %s, data ord. %s, num ord. %d",
gestioneOrd,
UtilityDate.formatDate(dataOrd, CommonConstants.DATE_FORMAT_DMY),
numOrd
));
}
Date dataIniz;
if (dataInizLav == null) {
dataIniz = new Date();
} else {