From 706e4b13ee30fe7eff6b162a52eb5e1150d39909 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 28 Nov 2023 14:27:38 +0100 Subject: [PATCH] fix: sentry issue --- bootstrap/helpers/docker.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.php index 030aa6aa7..d643cce6b 100644 --- a/bootstrap/helpers/docker.php +++ b/bootstrap/helpers/docker.php @@ -275,8 +275,11 @@ function generateLabelsApplication(Application $application, ?ApplicationPreview return $labels->all(); } -function isDatabaseImage(string $image) +function isDatabaseImage(?string $image = null) { + if (is_null($image)) { + return false; + } $image = str($image); if ($image->contains(':')) { $image = str($image);