Description
A NullPointerException can be thrown when the JVM's boot classloader is set as the thread's context classloader. Ex:
URL url = Thread.currentThread().getContextClassLoader().getResource(resourceName);
The call to getContextClassLoader() could return null - that is a valid return from that method. In that case, we should use ClassLoader.getSystemClassLoader() instead.
This issue was reported on in the users mailing list:
http://cxf.547215.n5.nabble.com/NPE-in-cxf-core-ClassLoaderUtils-possible-bug-td5780007.html
Attachments
Issue Links
- links to