[jira] [Resolved] (VELTOOLS-211) org.apache.velocity.tools.ClassUtils#getClass(String) fails when the context class loader is null
"Claude Brisson (Jira)" <[email protected]> Wed, 17 Jun 2026 14:17:00 +0000 (UTC)
| 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 ]
Claude Brisson resolved VELTOOLS-211.
-------------------------------------
Fix Version/s: 3.2
4.0
Assignee: Claude Brisson
Resolution: Fixed
PR merged
> 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
> Assignee: Claude Brisson
> Priority: Major
> Fix For: 3.2, 4.0
>
>
> 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)