Skip to content

Commit

Permalink
Merge pull request #689 from volosied/MYFACES-4657-5.0
Browse files Browse the repository at this point in the history
MYFACES-4657: Fix NPE Caused by null ClassName [5.0]
  • Loading branch information
volosied authored Mar 28, 2024
2 parents c9292a2 + a161f3e commit 3e42170
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ private boolean checkForFacesServlet(ServletContext servletContext)

for (ServletRegistration servletRegistration : servlets.values())
{
if(servletRegistration.getClassName() == null) // MYFACES-4657
{
return false;
}
if (FacesServletMappingUtils.isFacesServlet(servletRegistration.getClassName()))
{
// we found a FacesServlet; set an attribute for use during initialization
Expand Down

0 comments on commit 3e42170

Please sign in to comment.