From d507e59038de42cf519b323c9c15030e136474c2 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 7 Nov 2024 03:31:55 +0100 Subject: [PATCH] Catch nullpointer. --- app/Services/Internal/Update/JournalUpdateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }