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

Florian Holeczek closed JSPWIKI-326.
------------------------------------


> 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: 10m
>  Remaining Estimate: 10m
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to