diff --git a/app/src/main/java/org/gnucash/android/ui/transaction/TransactionFormFragment.java b/app/src/main/java/org/gnucash/android/ui/transaction/TransactionFormFragment.java index a5f9b91e0..a5dc76b1b 100644 --- a/app/src/main/java/org/gnucash/android/ui/transaction/TransactionFormFragment.java +++ b/app/src/main/java/org/gnucash/android/ui/transaction/TransactionFormFragment.java @@ -869,6 +869,18 @@ private List extractSplitsFromView() { BigDecimal amountBigD = mAmountEditText.getValue(); + if (amountBigD != null) { + // Amount is null + + // RAF + + } else { + // Amount is not null + + // init to 0 + amountBigD=new BigDecimal(0); + } + String baseCurrencyCode = mTransactionsDbAdapter.getAccountCurrencyCode(mAccountUID); // Store signed amount