From 5c16821fb98a5a4b48cb3e070e45e3c0d07126f1 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 30 Jan 2023 11:12:28 +1100 Subject: [PATCH] Fixes for null exception in failed method --- app/Jobs/Util/WebhookSingle.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Jobs/Util/WebhookSingle.php b/app/Jobs/Util/WebhookSingle.php index 2e80af61ea4b..5ecbad2aad4a 100644 --- a/app/Jobs/Util/WebhookSingle.php +++ b/app/Jobs/Util/WebhookSingle.php @@ -244,10 +244,10 @@ class WebhookSingle implements ShouldQueue return $this->company->clients()->first(); } - public function failed($exception) + public function failed($exception = null) { - - nlog(print_r($exception->getMessage(), 1)); + if($exception) + nlog($exception->getMessage()); } }