Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-10

[codec] Using US_ENGLISH static in Soundex causes NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.4
    • None
    • Operating System: Windows XP
      Platform: PC

    • 37894

    Description

      If I generate a soundex like so:
      Soundex.US_ENGLISH.soundex( "Williams" )
      I get a NullPointerException.

      But if I use the following:
      new Soundex().soundex( "Williams" )
      everything works fine.

      I think the order of initialization of statics may be to blame. I'll attach a
      test case.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rriser@informs.com Reggie Riser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: