fix: avoid null-pointer exception

This commit is contained in:
Björn Fromme
2025-04-30 09:54:35 +02:00
parent b56078ae58
commit 1322d9dae3
+1 -1
View File
@@ -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) {