Skip to content

Commit e658b7a

Browse files
committed
Check class name of ServletRegistration for null (ocpsoft/prettyfaces#23)
1 parent 33f7386 commit e658b7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/servlet

‎config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/servlet/WebXmlParser.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void parse(final ServletContext context) throws IOException, SAXException
6161

6262
for (ServletRegistration s : registrations)
6363
{
64-
if (s.getClassName().equalsIgnoreCase(FACES_SERVLET))
64+
if (s.getClassName() != null && s.getClassName().equalsIgnoreCase(FACES_SERVLET))
6565
{
6666
Collection<String> mappings = s.getMappings();
6767
if (!mappings.isEmpty())

0 commit comments

Comments
 (0)