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

This commit is contained in:
Jean Chalard 2011-09-27 02:31:29 -07:00 committed by Android (Google) Code Review
commit 091ee76285

View file

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