When .class cannot be loaded, throw a sensible exception instead of NPE

Description

When the .class file for a given class cannot be loaded, currently a NullPointerException is thrown. It would be nicer if a sensible exception were thrown instead.

https://github.com/hibernate/hibernate-orm/pull/1672

Environment

None

Status

Assignee

Unassigned

Reporter

Craig Andrews

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Affects versions

Priority

Minor
Configure