fix: avoid null argument exception
This commit is contained in:
1 parent
09cec088e6
commit
48d407f74c
1 file changed
+4
@@ -166,6 +166,10 @@ class AssignmentType extends AbstractType
|
||||
->find($destinationId)
|
||||
;
|
||||
|
||||
if (null === $destination) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->addPickupField($destination, $form);
|
||||
})
|
||||
;
|
||||
|
||||
Reference in new issue
Block a user