diff --git a/src/Bundle/ChillPersonBundle/Entity/Person/PersonResource.php b/src/Bundle/ChillPersonBundle/Entity/Person/PersonResource.php index 10476242f..b1022cf4c 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person/PersonResource.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person/PersonResource.php @@ -231,7 +231,7 @@ class PersonResource implements TrackCreationInterface, TrackUpdateInterface ->addViolation(); } - if ($this->person === $this->personOwner) { + if (null !== $this->person && $this->person === $this->personOwner) { $context->buildViolation('You cannot associate a resource with the same person') ->addViolation(); }