Skip to content

Commit

Permalink
Fix MUI_CONTAINSKEY_BEFORE_GET in LjubesicPandzicStemmer
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lutz committed Apr 29, 2020
1 parent 6e42633 commit 9bb0145
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ private String convertCyrrilicToLatinString(String word) {
/* Convert a single Cyrillic character to Latin character or digraph.
*/
private String convertCyrillicToLatinCharacter(char character) {
if (cyr2LatMap.containsKey(character)) {
return cyr2LatMap.get(character);
String latinCharacter = cyr2LatMap.get(character);
if (latinCharacter != null) {
return latinCharacter;
}
return Character.toString(character);
}
Expand Down

0 comments on commit 9bb0145

Please sign in to comment.