Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Error code for #4200
James Colea19e116a15e7
diff --git a/app/TransactionRules/Actions/SetCategory.php b/app/TransactionRules/Actions/SetCategory.phpindex 7876262553..ce32338321 100644--- a/app/TransactionRules/Actions/SetCategory.php+++ b/app/TransactionRules/Actions/SetCategory.php@@ -52,6 +52,10 @@ class SetCategory implements ActionInterface{$user = User::find($journal['user_id']);$search = $this->action->action_value;+ if(null === $user) {+ Log::error(sprintf('Journal has no valid user ID so action SetCategory("%s") cannot be applied', $search), $journal);+ return false;+ }/** @var CategoryFactory $factory */$factory = app(CategoryFactory::class);