mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Fix nullpointer
This commit is contained in:
@@ -116,7 +116,7 @@ class TransactionGroupTransformer extends AbstractTransformer
|
|||||||
$row = new NullArrayObject($transaction);
|
$row = new NullArrayObject($transaction);
|
||||||
|
|
||||||
// amount:
|
// amount:
|
||||||
$amount = app('steam')->positive((string)($row['amount'] ?? '0'));
|
$amount = app('steam')->positive((string) ($row['amount'] ?? '0'));
|
||||||
$foreignAmount = null;
|
$foreignAmount = null;
|
||||||
if (null !== $row['foreign_amount']) {
|
if (null !== $row['foreign_amount']) {
|
||||||
$foreignAmount = app('steam')->positive($row['foreign_amount']);
|
$foreignAmount = app('steam')->positive($row['foreign_amount']);
|
||||||
@@ -124,7 +124,9 @@ class TransactionGroupTransformer extends AbstractTransformer
|
|||||||
|
|
||||||
$metaFieldData = $this->groupRepos->getMetaFields((int) $row['transaction_journal_id'], $this->metaFields);
|
$metaFieldData = $this->groupRepos->getMetaFields((int) $row['transaction_journal_id'], $this->metaFields);
|
||||||
$metaDateData = $this->groupRepos->getMetaDateFields((int) $row['transaction_journal_id'], $this->metaDateFields);
|
$metaDateData = $this->groupRepos->getMetaDateFields((int) $row['transaction_journal_id'], $this->metaDateFields);
|
||||||
|
$type = $this->stringFromArray($transaction, 'transaction_type_type', TransactionType::WITHDRAWAL);
|
||||||
|
|
||||||
|
|
||||||
$longitude = null;
|
$longitude = null;
|
||||||
$latitude = null;
|
$latitude = null;
|
||||||
$zoomLevel = null;
|
$zoomLevel = null;
|
||||||
|
Reference in New Issue
Block a user