The ``FormEvents::PRE_SET_DATA`` event will actually be triggered twice here: first with ``null`` and a second time with the user, because of the way FOSUserBundle sets the user (this issue should be fixed in newer versions of Symfony IIRC). So simply return early in the listener if the data is null.