From 48d407f74c17ec4f180a4e537e631738478f1bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 18 Mar 2024 08:34:20 +0100 Subject: [PATCH] fix: avoid null argument exception --- src/Form/AssignmentType.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Form/AssignmentType.php b/src/Form/AssignmentType.php index c88017c..68672e2 100644 --- a/src/Form/AssignmentType.php +++ b/src/Form/AssignmentType.php @@ -166,6 +166,10 @@ class AssignmentType extends AbstractType ->find($destinationId) ; + if (null === $destination) { + return; + } + $this->addPickupField($destination, $form); }) ;