[jira] [Updated] (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]>
     [ https://issues.apache.org/jira/browse/VELTOOLS-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jadon Hansell updated VELTOOLS-211:
-----------------------------------
    Affects Version/s: 3.1

> 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
>    Affects Versions: 3.1
>            Reporter: Jadon Hansell
>            Priority: Major
>
> 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.