Skip to content

Firefly III: a personal finances manager

Catch nullpointer.

James Coled507e59038de
diff --git a/app/Services/Internal/Update/JournalUpdateService.php b/app/Services/Internal/Update/JournalUpdateService.php
index 2766d36bfa..0fd902aa58 100644
--- a/app/Services/Internal/Update/JournalUpdateService.php
+++ b/app/Services/Internal/Update/JournalUpdateService.php
@@ -615,7 +615,7 @@ class JournalUpdateService
$set = [
'journal' => $this->transactionJournal,
'name' => sprintf('%s_tz', $field),
- 'data' => $value->format('e'),
+ 'data' => $value?->format('e'),
];
$factory->updateOrCreate($set);
}