fix: avoid null argument exception

This commit is contained in:
Björn Fromme
2024-03-18 08:34:45 +01:00
parent 09cec088e6
commit 48d407f74c
+4
View File
@@ -166,6 +166,10 @@ class AssignmentType extends AbstractType
->find($destinationId)
;
if (null === $destination) {
return;
}
$this->addPickupField($destination, $form);
})
;