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

compatibility issue with 26.0 - NullPointerException in ConditionalEmailAuthenticatorForm.java #57

Open
airmoi opened this issue Dec 17, 2024 · 0 comments

Comments

@airmoi
Copy link

airmoi commented Dec 17, 2024

Hi,

I just tried this provider with version 26.0 and it throws an error when we try to access the OTP form.
The issue is due to an exception thrown during authenticate because the authenticatorConfig() is empty.

I was able to fix it by changing line 45 in ConditionalEmailAuthenticatorForm.java :

AuthenticatorConfigModel model = context.getAuthenticatorConfig();
Map<String, String> config = model != null? model.getConfig() : Collections.emptyMap();

The fix is based on an equivalent issue reported here and the pull request which fix it.

Sorry I'm not an actual java developer and won't be able to generate any test based on the fix so I won't do a pull request

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

No branches or pull requests

1 participant