incubator-jspwiki-dev mailing list archives

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

                 Key: JSPWIKI-326
                 URL: https://issues.apache.org/jira/browse/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/profanity.properties.
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.


Mime
View raw message