cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7349) NPE in ClassLoaderUtils
Date Wed, 07 Jun 2017 15:39:18 GMT

    [ https://issues.apache.org/jira/browse/CXF-7349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16041068#comment-16041068
] 

ASF GitHub Bot commented on CXF-7349:
-------------------------------------

Github user andymc12 commented on the issue:

    https://github.com/apache/cxf/pull/270
  
    @sberyozkin @deki I am not able to merge - my view of this PR says that "Only those with
write access to this repository can merge pull requests."  I should have access to commit,
but maybe the ACLs have not been updated on github?  


> NPE in ClassLoaderUtils
> -----------------------
>
>                 Key: CXF-7349
>                 URL: https://issues.apache.org/jira/browse/CXF-7349
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.1.11
>            Reporter: Andy McCright
>             Fix For: 3.2.0, 3.1.12
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message