You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If we try to use Jep from a thread that has context class loader null (e.g. thread created from the outside of Java runtime) it fails with java.lang.NullPointerException at line 282 in ClassList in method loadClassList.
To Reproduce
Not yet have code to reproduce. A possible way similar to what we try to do:
Additional context
When Thread.currentThread().getContextClassLoader() returns null then that null is added to the list of class loaders and then code tries to call in = cl.getResourceAsStream(rsc); and fails. A null check is needed before adding a class loader to the list.
The text was updated successfully, but these errors were encountered:
Htarlov
added a commit
to Htarlov/jep
that referenced
this issue
May 24, 2022
Describe the bug
If we try to use Jep from a thread that has context class loader null (e.g. thread created from the outside of Java runtime) it fails with java.lang.NullPointerException at line 282 in ClassList in method loadClassList.
To Reproduce
Not yet have code to reproduce. A possible way similar to what we try to do:
Expected behavior
Instance of the class should be created without exception.
Environment (please complete the following information):
Additional context
When Thread.currentThread().getContextClassLoader() returns null then that null is added to the list of class loaders and then code tries to call in = cl.getResourceAsStream(rsc); and fails. A null check is needed before adding a class loader to the list.
The text was updated successfully, but these errors were encountered: