Fix tara pedana nulla in Bottom Sheet Fragment
This commit is contained in:
@@ -44,7 +44,7 @@ public class BottomSheetFragmentLUContentViewModel {
|
||||
if (collo == null) return;
|
||||
|
||||
ObservableMtbTcol tipoPedana = collo.getMtbTCol();
|
||||
BigDecimal taraPedana = tipoPedana != null ? tipoPedana.getTaraKg() : BigDecimal.ZERO;
|
||||
BigDecimal taraPedana = tipoPedana != null && tipoPedana.getTaraKg() != null ? tipoPedana.getTaraKg() : BigDecimal.ZERO;
|
||||
BigDecimal pesoNetto = BigDecimal.ZERO;
|
||||
|
||||
for (MtbColr mtbColr : collo.getMtbColr()) {
|
||||
|
||||
Reference in New Issue
Block a user