Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82e87f4f authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android (Google) Code Review
Browse files

Merge "Fix: NPE in unit test."

parents 33cbd1fb 2522a4a4
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -1237,6 +1237,7 @@ public class BinaryDictionaryTests extends AndroidTestCase {
            wordSet.remove(word0);
            final HashSet<String> bigramWord1s = bigrams.get(word0);
            // TODO: Support ngram.
            if (wordProperty.mHasNgrams) {
                for (final WeightedString bigramTarget : wordProperty.getBigrams()) {
                    final String word1 = bigramTarget.mWord;
                    assertTrue(bigramWord1s.contains(word1));
@@ -1247,6 +1248,7 @@ public class BinaryDictionaryTests extends AndroidTestCase {
                    }
                    bigramSet.remove(bigram);
                }
            }
            token = result.mNextToken;
        } while (token != 0);
        assertTrue(wordSet.isEmpty());