NPE in AbstractPropertyMapping.getCommonPersistentClass when creating UnionSubclassEntityPersister for dynamic-map

Description

I use some entities of dynamic-map mode in program.
After upgrading hibernate from 5.2.13 to 5.2.14 / 5.2.15 / 5.2.16 / 5.2.17, an NPE occurs while creating SessionFactory:

The HBM file to reproduce the error:

Environment

None

Status

Assignee

Andrea Boriero

Reporter

凯斌黄

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.13

Components

Affects versions

Priority

Major
Configure