Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Try to catch a null pointer.
James Coled85ccb6ab2d5
diff --git a/app/Repositories/Budget/BudgetRepository.php b/app/Repositories/Budget/BudgetRepository.phpindex b1a18f6719..f0c9f09b6c 100644--- a/app/Repositories/Budget/BudgetRepository.php+++ b/app/Repositories/Budget/BudgetRepository.php@@ -41,6 +41,7 @@ use Illuminate\Database\Eloquent\Builder;use Illuminate\Support\Collection;use Log;use Navigation;+use Symfony\Component\Debug\Exception\FatalThrowableError;/*** Class BudgetRepository.@@ -104,7 +105,7 @@ class BudgetRepository implements BudgetRepositoryInterface// delete limits with amount 0:try {BudgetLimit::where('amount', 0)->delete();- } catch (Exception $e) {+ } catch (Exception|FatalThrowableError $e) {Log::debug(sprintf('Could not delete budget limit: %s', $e->getMessage()));}Budget::where('order',0)->update(['order' => 100]);@@ -119,7 +120,7 @@ class BudgetRepository implements BudgetRepositoryInterface// delete it!try {BudgetLimit::find($budgetLimit->id)->delete();- } catch (Exception $e) {+ } catch (Exception|FatalThrowableError $e) {Log::debug(sprintf('Could not delete budget limit: %s', $e->getMessage()));}}