Skip to content

Firefly III: a personal finances manager

Fix null pointers

James Cole33e63434a3d3
diff --git a/app/Factory/TransactionJournalFactory.php b/app/Factory/TransactionJournalFactory.php
index 6226fa4141..8c0604b519 100644
--- a/app/Factory/TransactionJournalFactory.php
+++ b/app/Factory/TransactionJournalFactory.php
@@ -179,7 +179,7 @@ class TransactionJournalFactory
Log::debug('Find foreign currency or return NULL.');
$foreignCurrency = $this->currencyRepository->findCurrencyNull($row['foreign_currency_id'] ?? 0, $row['foreign_currency_code'] ?? '');
- $bill = $this->billRepository->findBill(((int) $row['bill_id'] ?? 0, $row['bill_name'] ?? '');
+ $bill = $this->billRepository->findBill(((int) $row['bill_id'] ?? 0), $row['bill_name'] ?? '');
$billId = TransactionTypeEnum::WITHDRAWAL->value === $type->type && $bill instanceof Bill ? $bill->id : null;
$description = (string) $row['description'];