5.2.14 regression: NullPointerException in AbstractPropertyMapping.getSuperCollection

Description

The following exception is thrown with hibernate-core 5.2.14:

The code in question looks like this:

AbstractPropertyMapping.java

/* L285 */ marks the line causing the NullPointerException.

Be aware that these two while loops would loop forever in absence of this exception since the variables c1 and c2 are never reassigned and there are no break statements either.

Environment

Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00)
Java version: 1.8.0_162, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"

Status

Assignee

Christian Beikov

Reporter

Jörn Huxhorn

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.13

Components

Affects versions

Priority

Critical
Configure