Fix null in spedizione
This commit is contained in:
parent
2eff03dee6
commit
bffb471015
@ -1015,7 +1015,7 @@ public class SpedizioneViewModel {
|
|||||||
if (availableBatchLots.stream().anyMatch(x -> x.getDataScad() == null)) {
|
if (availableBatchLots.stream().anyMatch(x -> x.getDataScad() == null)) {
|
||||||
tmp.addAll(availableBatchLots.stream()
|
tmp.addAll(availableBatchLots.stream()
|
||||||
.filter(x -> x.getDataScad() == null)
|
.filter(x -> x.getDataScad() == null)
|
||||||
.sorted(Comparator.comparing(x -> UtilityString.isNull(x.getPartitaMag(), "")))
|
.sorted(Comparator.comparing(x -> x.getPartitaMag() == null ? "" : x.getPartitaMag()))
|
||||||
.collect(Collectors.toList()));
|
.collect(Collectors.toList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user