Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4
-
None
-
None
-
jdk 1.6.10, tomcat 6.x
Description
If any token given to the DoubleMetaphoneFilter is empty (Token exists, 0 length), then the encoder will return null instead of a metaphone encoded string. The current code assumes that there will always be a valid object returned.
Proposed solution: Make sure 0-length tokens are skipped at the top branch where the code checks whether or not we have a Token object at all.