fix: avoid null-pointer exception
This commit is contained in:
@@ -322,7 +322,7 @@ class ParticipantType extends AbstractType
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$transportationId = $data['transportationServiceTo'];
|
$transportationId = $data['transportationServiceTo'] ?? null;
|
||||||
$transportation = $options['travel']->pickups[$transportationId] ?? null;
|
$transportation = $options['travel']->pickups[$transportationId] ?? null;
|
||||||
|
|
||||||
if (null !== $transportation && 'PKW' === $transportation->subType) {
|
if (null !== $transportation && 'PKW' === $transportation->subType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user