Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-326

ProfanityFilter fails with NPE if profanity.properties not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8
    • 2.8
    • Filters
    • None
    • All

    Description

      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.

      Attachments

        Activity

          People

            ajaquith Andrew R. Jaquith
            ajaquith Andrew R. Jaquith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified