We're updating the issue view to help you get more done. 

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

Labels

Worked in

3.3.2

Components

Fix versions

Affects versions

4.3.12
5.0.12
5.1.10
5.2.12

Priority

Major