When there is a custom anonymous user created dynamically through code, a database integrity error occurs since the account has no ID.
Add an extra condition to check for users with no ID.
Active
1.7
Code
The below patch file will solve the issue. Patch#1 →