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