Fix null su picking senza gestione giacenza

This commit is contained in:
Giuseppe Scorrano 2024-02-07 17:12:00 +01:00
parent 725372befe
commit 089ca061a7

View File

@ -795,7 +795,7 @@ public class SpedizioneViewModel {
MtbColt refMtbColt = matchedItem.getRefMtbColt();
if (matchedItem.getMtbColts() != null && matchedItem.getMtbColts().size() == 1) {
refMtbColt = matchedItem.getMtbColts().get(0);
} else if (matchedItem.getTempPickData().getSourceMtbColt() != null) {
} else if (matchedItem.getTempPickData() != null && matchedItem.getTempPickData().getSourceMtbColt() != null) {
refMtbColt = matchedItem.getTempPickData().getSourceMtbColt();
}
MtbColr refMtbColr = refMtbColt != null ? refMtbColt.getMtbColr().get(0) : null;