Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix nullpointer.
James Cole3aa946e02891
diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.phpindex 10e20eea4d..ae56ea84f0 100644--- a/app/Http/Controllers/Chart/BudgetController.php+++ b/app/Http/Controllers/Chart/BudgetController.php@@ -168,15 +168,14 @@ class BudgetController extends Controller}$locale = app('steam')->getLocale();$entries = [];- $amount = $budgetLimit->amount;+ $amount = $budgetLimit->amount ?? '0';$budgetCollection = new Collection([$budget]);$currency = $budgetLimit->transactionCurrency;if ($this->convertToNative) {- $amount = $budgetLimit->native_amount;+ $amount = $budgetLimit->native_amount ?? '0';$currency = $this->defaultCurrency;}-while ($start <= $end) {$current = clone $start;$expenses = $this->opsRepository->sumExpenses($current, $current, null, $budgetCollection, $budgetLimit->transactionCurrency);