Skip to content

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

Open
@airmoi

Description

@airmoi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions