Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Nailgun loaded in bootclasspath raises NPE in alias logic #27

Closed
headius opened this issue Apr 2, 2014 · 1 comment
Closed

Nailgun loaded in bootclasspath raises NPE in alias logic #27

headius opened this issue Apr 2, 2014 · 1 comment

Comments

@headius
Copy link

headius commented Apr 2, 2014

This line in AliasManager can raise NPE if the Nailgun classes are loaded in the boot classpath. Classes loaded this way have a null getClassLoader.

The fix is to explicitly use the system classloader when getClassLoader returns null.

This is obviously a somewhat unusual case, but we had a JRuby user hit it.

@martylamb
Copy link
Contributor

Thanks much - fixed and pushed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants