fix: avoid null-pointer exception
This commit is contained in:
1 parent
b56078ae58
commit
1322d9dae3
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user