From 1322d9dae38d839dc900cc1ad4c655d48d5fa7a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 30 Apr 2025 09:54:35 +0200 Subject: [PATCH] fix: avoid null-pointer exception --- src/Form/ParticipantType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/ParticipantType.php b/src/Form/ParticipantType.php index f516396..04cb140 100644 --- a/src/Form/ParticipantType.php +++ b/src/Form/ParticipantType.php @@ -322,7 +322,7 @@ class ParticipantType extends AbstractType return; } - $transportationId = $data['transportationServiceTo']; + $transportationId = $data['transportationServiceTo'] ?? null; $transportation = $options['travel']->pickups[$transportationId] ?? null; if (null !== $transportation && 'PKW' === $transportation->subType) {