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

Activity

Show:
Vlad Mihalcea
December 12, 2016, 1:51 PM

Applied PR upstream.

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