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] Resolved: (JSPWIKI-326) ProfanityFilter fails with NPE if profanity.properties not found
Date Thu, 31 Jul 2008 04:38:31 GMT

     [ 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.


Mime
View raw message