diff --git a/app/Mail/CheckoutAssetMail.php b/app/Mail/CheckoutAssetMail.php index 324c1c8f29b3..ae855b7226a1 100644 --- a/app/Mail/CheckoutAssetMail.php +++ b/app/Mail/CheckoutAssetMail.php @@ -87,7 +87,7 @@ public function content(): Content $name = $this->target->assignedto?->display_name; } else if($this->target instanceof Location){ - $name = $this->target->manager->name; + $name = $this->target->manager?->name; } // Check if the item has custom fields associated with it