From 5eaa427f0979512590b74985d3539dab3697be87 Mon Sep 17 00:00:00 2001 From: FreeScout Date: Fri, 20 Dec 2024 08:42:14 -0800 Subject: [PATCH] Fix Call to a member function getFullName() on null in Thread.php - closes #4438 --- app/Thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Thread.php b/app/Thread.php index 96a0327de..80b75a492 100644 --- a/app/Thread.php +++ b/app/Thread.php @@ -664,7 +664,7 @@ public function getActionText($conversation_number = '', $escape = false, $strip } } elseif ($this->action_type == self::ACTION_TYPE_CUSTOMER_CHANGED) { if ($conversation_number) { - $did_this = __(':person changed the customer to :customer in conversation #:conversation_number', ['customer' => $this->customer->getFullName(true), 'conversation_number' => $conversation_number]); + $did_this = __(':person changed the customer to :customer in conversation #:conversation_number', ['customer' => ($this->customer_cached ? $this->customer_cached->getFullName(true) : ''), 'conversation_number' => $conversation_number]); } else { $customer_name = ''; if ($this->customer_cached) {