NPE upon insert & delete with identity generated id

Description

When an entity with generated id is inserted and deleted in the same transaction and flush mode is set to COMMIT, NPE is thrown:

Attaching reproducer (fails with master = 5.3.0-SNAPSHOT, rev. 69000ddc165ca0aba13ac950b2637974e018c4fb).

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Radim Vansa

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure