- Issue created by @saurabh-2k17
- Assigned to darvanen
- Status changed to Needs review
28 days ago 9:24pm 13 October 2025
I came across this issue when I tried changing the user role.
I believe the website I am working with installed the advanced_email_validation module later at some stage. The email field for user is non required and doesn't have a value in it. When I try to change the role the site breaks and complains:
Call to a member function get() on null in Drupal\advanced_email_validation\Plugin\Validation\Constraint\AEVChangedEmailValidator->valueChanged() (line 72 of docroot/modules/contrib/advanced_email_validation/src/Plugin/Validation/Constraint/AEVChangedEmailValidator.php)
Handling the storedEntity object and not access it if the value is missing
Active
2.0
Code