mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Catch null pointer [skip ci]
This commit is contained in:
parent
7d6c8aa9dc
commit
9e6194bfdc
@ -58,8 +58,12 @@ class TransactionJournal extends Twig_Extension
|
||||
{
|
||||
/** @var JournalRepositoryInterface $repository */
|
||||
$repository = app(JournalRepositoryInterface::class);
|
||||
$result = $repository->getMetaField($journal, $field);
|
||||
if (is_null($result)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $repository->getMetaField($journal, $field);
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user