From 126a0680dbc48098b338733c769621f3ead8f28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 12 Nov 2026 11:13:30 +0100 Subject: [PATCH] fix: return no category label for a job profile without category --- src/Entity/JobProfile.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Entity/JobProfile.php b/src/Entity/JobProfile.php index 4104c83..e60e66b 100644 --- a/src/Entity/JobProfile.php +++ b/src/Entity/JobProfile.php @@ -129,6 +129,10 @@ class JobProfile implements BlameableEntityInterface, TimestampableEntityInterfa public function getCategoryLabel(): ?string { + if (null === $this->category) { + return null; + } + return self::getCategories()[$this->category] ?? null; }