AbstractCompositionAttribute#getAttributes throws NPE for nested CompositeCustomType

Description

When using CompositeUserType(s) in attribute mappings which get wrapped by CompositeCustomType, NPE is thrown when selecting an entity using such type. This last worked in 3.3.2 (maybe more), but in 4.3 series it was already broken. There are 2 places in AbstractCompositionAttribute#getAttributes that guard against NPE, but the 3rd place has been missed (line 176). This gets triggered when the type is CompositeCustomType which returns null for getPropertyNullability(). I propose a patch that does the same for the missed place too...

Environment

None

Status

Assignee

Gail Badner

Reporter

Peter Levart

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

3.3.2

Components

Affects versions

5.0.12
4.3.12
5.2.12
5.1.10

Priority

Major