[jira] [Created] (VELTOOLS-211) org.apache.velocity.tools.ClassUtils#getClass(String) fails when the context class loader is null

"Jadon Hansell (Jira)" <[email protected]>
Newsgroups gmane.comp.jakarta.velocity.devel
Message-ID <[email protected]>
Jadon Hansell created VELTOOLS-211:
--------------------------------------

             Summary: org.apache.velocity.tools.ClassUtils#getClass(String) fails when the context class loader is null
                 Key: VELTOOLS-211
                 URL: https://issues.apache.org/jira/browse/VELTOOLS-211
             Project: Velocity Tools
          Issue Type: Bug
            Reporter: Jadon Hansell


org.apache.velocity.tools.ClassUtils#getClass(String) (and other methods using getThreadContextLoader() in this class) throws a NullPointerException when the current thread's context class loader is null.

[Link to related line|https://github.com/apache/velocity-tools/blob/712cfbd26b2d1a423712aba6a5cae3b8b973912e/velocity-tools-generic/src/main/java/org/apache/velocity/tools/ClassUtils.java#L96]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.