From 6b05663af0642eb2dd091cae89d758f1c0e13eb9 Mon Sep 17 00:00:00 2001 From: Andrey Butov Date: Fri, 27 Oct 2023 19:47:15 -0400 Subject: [PATCH] Update AppUninstalledJob.php null guard against an invalid shop on uninstall --- src/Messaging/Jobs/AppUninstalledJob.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Messaging/Jobs/AppUninstalledJob.php b/src/Messaging/Jobs/AppUninstalledJob.php index c973e69c..341dab8a 100644 --- a/src/Messaging/Jobs/AppUninstalledJob.php +++ b/src/Messaging/Jobs/AppUninstalledJob.php @@ -71,6 +71,9 @@ public function handle( // Get the shop $shop = $shopQuery->getByDomain($this->domain); + if ( !$shop ) { + return true; + } $shopId = $shop->getId(); // Cancel the current plan