getDynamicPayload(Class<C> type) throws Nullpointerexception

Description

org.hibernate.validator.internal.engine.ConstraintViolationImpl::getDynamicPayload(Class<C> type) throws a NullpointerExeption if dynamicPayload is null because of this.dynamicPayload.getClass().

I think it would be better to return null in this case.

Environment

None

Assignee

Unassigned

Reporter

Sebastian Bayerl

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure