[ 
https://issues.apache.org/jira/browse/JSPWIKI-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Jaquith resolved JSPWIKI-326.
------------------------------------

    Resolution: Fixed

Fixed as described in 2.7.0-alpha-6.

> 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
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> 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.

Reply via email to