Catch nullpointer.

This commit is contained in:
James Cole
2024-11-07 03:31:55 +01:00
parent 9d0fd7ef1b
commit d507e59038

View File

@@ -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);
}