Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Call to a member function setFieldMapping() on null #87

Closed
1 task done
sabina-talipova opened this issue Jan 15, 2023 · 1 comment
Closed
1 task done

Comments

@sabina-talipova
Copy link
Contributor

sabina-talipova commented Jan 15, 2023

Description

FormSpamProtectionExtension::get_protector($options = null) returns null if $options is null or $options['protector'] doesn't exist and 'default_spam_protector' config don't set up.
Check is $protector object exist before run SpamProtector class methods.

This only shows up on the build for spam protection.

AC's

  • A NULL check is added.

PRs

@sabina-talipova
Copy link
Contributor Author

Issue was fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants