incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Jaquith (JIRA)" <>
Subject [jira] Created: (JSPWIKI-326) ProfanityFilter fails with NPE if not found
Date Thu, 31 Jul 2008 04:26:33 GMT
ProfanityFilter fails with NPE if not found

                 Key: JSPWIKI-326
             Project: JSPWiki
          Issue Type: Bug
          Components: Filters
    Affects Versions: 2.8
         Environment: All
            Reporter: Andrew Jaquith
            Assignee: Andrew Jaquith
            Priority: Minor
             Fix For: 2.8

ProfanityFilter attempts to load a list of naughty words from com/ecyrd/jspwiki/filters/
This is done through a static class initializer. However, if the file cannot be found, static
String[] array c_profanities is never initialized.

The fix is simply to assign the value of c_profanities to String[0] before the static {} block.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message