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

ASF GitHub Bot commented on MYFACES-4252:
-----------------------------------------

wtlucy opened a new pull request #20: MYFACES-4252 fix Classpath._searchDir NPE 
2.1.X 
URL: https://github.com/apache/myfaces/pull/20
 
 
   fixes https://issues.apache.org/jira/browse/MYFACES-4252

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Classpath._searchDir can throw NullPointerException
> ---------------------------------------------------
>
>                 Key: MYFACES-4252
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4252
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.24, 2.1.18, 2.2.12, 2.3.1
>         Environment: WebSphere 9
>            Reporter: Bill Lucy
>            Assignee: Bill Lucy
>            Priority: Major
>
> In rare cases, Classpath._searchDir can throw a NPE and cause startup to 
> fail.  I'll update _searchDir() to tolerate the case where File.listFiles() 
> returns null.
> DefaultFacesC I Reading config /WEB-INF/faces-config.xml
>  AbstractFaces E An error occured while initializing MyFaces: 
> java.lang.NullPointerException
>  javax.faces.FacesException: java.lang.NullPointerException
> ....
> Caused by: java.lang.NullPointerException
>  at 
> org.apache.myfaces.view.facelets.util.Classpath._searchDir(Classpath.java:143)
>  at 
> org.apache.myfaces.view.facelets.util.Classpath._searchResource(Classpath.java:115)
>  at org.apache.myfaces.view.facelets.util.Classpath.search(Classpath.java:68)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to