Skip to content

NullPointerException thrown if principal or credentials are null #538

@philwebb

Description

@philwebb

Originally raised in spring-projects/spring-boot#17861

The org.springframework.ldap.core.support.AbstractContextSource class has a setupAuthenticatedEnvironment which is passed a principal and credentials. If either of these are null a NullPointerException is thrown because null values are not permitted in a Hashtable.

I think it might be better if DirContextAuthenticationStrategy implementations could guard against null values and not add entries in such cases.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions