Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4252

Classpath._searchDir can throw NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.24, 2.1.18, 2.2.12, 2.3.1
    • 2.0.25, 2.1.19, 2.2.13, 2.3.3
    • None
    • None
    • WebSphere 9

    Description

      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)

      Attachments

        Activity

          People

            wtlucy Bill Lucy
            wtlucy Bill Lucy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: