Fix a bug ending in a NPE in some rare cases.

Change-Id: If8109c6aa29d100eb745f17f0af756bcb6e3cabb
This commit is contained in:
Jean Chalard 2011-09-27 18:03:42 +09:00
parent e76dbffe00
commit cad25fc8a7

View file

@ -268,7 +268,7 @@ public class FusionDictionary implements Iterable<Word> {
+ new String(word, 0, word.length)); + new String(word, 0, word.length));
} }
final CharGroup newGroup = new CharGroup(word, final CharGroup newGroup = new CharGroup(word,
currentGroup.mBigrams, frequency); currentGroup.mBigrams, frequency, currentGroup.mChildren);
currentNode.mData.set(nodeIndex, newGroup); currentNode.mData.set(nodeIndex, newGroup);
} }
} else { } else {