org.hibernate.metamodel.model.domain.internal.AbstractManagedType#getPluralAttributes NPE

Description

It appears that a regression in commit 35c58e9 introduced the potential for an NPE when calling getPluralAttributes for a model without plural attributes. The method checks if declaredAttributes is null, but should likely check declaredPluralAttributes instead.

Environment

None

Activity

Show:
Michael Edgar
November 25, 2020, 12:56 AM
Edited

Please note that the opened PR targets the 5.4 branch. I can replace with a different PR if that is not correct.

Sanne Grinovero
November 30, 2020, 6:52 PM

many thanks! Yes we normally expert PRs to target master, but no worries I’l amend it.

Fixed

Assignee

Michael Edgar

Reporter

Michael Edgar

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

backportDecision

None

Worked in

5.4.22

Components

Affects versions

Priority

Major
Configure