Fix documenti interni nullpoint

This commit is contained in:
2023-12-13 15:56:30 +01:00
parent 946d3e6593
commit 8411b0fc17
2 changed files with 3 additions and 2 deletions

View File

@@ -293,6 +293,7 @@ public class DocInterniEditFormViewModel {
.filter(x -> x.getCodVdes() == null).findFirst().get().getCheckFornitoreDTO();
} else{
checkFornitoreDTO = Stream.of(filterFornitori)
.filterNot(x -> x.getCodVdes() == null)
.filter(x -> x.getCodVdes().equals(doc.getCodVdes())).findFirst().get().getCheckFornitoreDTO();
}