Skip to content

Firefly III: a personal finances manager

Fix https://github.com/firefly-iii/firefly-iii/issues/9175

James Colea153735ac32e
diff --git a/app/Validation/AccountValidator.php b/app/Validation/AccountValidator.php
index 62a4ee6258..1b9734c8b3 100644
--- a/app/Validation/AccountValidator.php
+++ b/app/Validation/AccountValidator.php
@@ -86,7 +86,7 @@ class AccountValidator
app('log')->debug('AccountValidator source is set to NULL');
}
if (null !== $account) {
- app('log')->debug(sprintf('AccountValidator source is set to #%d: "%s" (%s)', $account->id, $account->name, $account->accountType->type));
+ app('log')->debug(sprintf('AccountValidator source is set to #%d: "%s" (%s)', $account->id, $account->name, $account->accountType?->type));
}
$this->source = $account;
}