mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Fix nullpointer
This commit is contained in:
@@ -476,7 +476,7 @@ class TransactionJournalFactory
|
|||||||
*/
|
*/
|
||||||
private function getCurrency(?TransactionCurrency $currency, Account $account): TransactionCurrency
|
private function getCurrency(?TransactionCurrency $currency, Account $account): TransactionCurrency
|
||||||
{
|
{
|
||||||
Log::debug(sprintf('Now in getCurrency(#%d, "%s")', $currency->id, $account->name));
|
Log::debug(sprintf('Now in getCurrency(#%d, "%s")', $currency?->id, $account->name));
|
||||||
|
|
||||||
/** @var null|TransactionCurrency $preference */
|
/** @var null|TransactionCurrency $preference */
|
||||||
$preference = $this->accountRepository->getAccountCurrency($account);
|
$preference = $this->accountRepository->getAccountCurrency($account);
|
||||||
|
Reference in New Issue
Block a user