diff options
author | 2013-07-29 17:47:13 +0900 | |
---|---|---|
committer | 2013-07-29 18:09:48 +0900 | |
commit | 5408fec63a52015af9eefe3042eb1c435912195b (patch) | |
tree | 46f5ad79d5e2d87ed1fe648506176c3365fcd8af /tests/src/com/android/inputmethod/latin/InputTestsBase.java | |
parent | 654b0a9c16b133019d5c68548d799a44164e7724 (diff) | |
download | latinime-5408fec63a52015af9eefe3042eb1c435912195b.tar.gz latinime-5408fec63a52015af9eefe3042eb1c435912195b.tar.xz latinime-5408fec63a52015af9eefe3042eb1c435912195b.zip |
Fix an NPE
Also make mSuggest private for more security.
Bug: 10045657
Change-Id: I712505e4d2a2606efff5d09ba9b4c656f9e7c7a9
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputTestsBase.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/InputTestsBase.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java index d1ce104b4..eb4f706cc 100644 --- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java @@ -225,7 +225,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> { protected void waitForDictionaryToBeLoaded() { int remainingAttempts = 300; - while (remainingAttempts > 0 && mLatinIME.mSuggest.isCurrentlyWaitingForMainDictionary()) { + while (remainingAttempts > 0 && mLatinIME.isCurrentlyWaitingForMainDictionary()) { try { Thread.sleep(200); } catch (InterruptedException e) { @@ -234,7 +234,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> { --remainingAttempts; } } - if (!mLatinIME.mSuggest.hasMainDictionary()) { + if (!mLatinIME.hasMainDictionary()) { throw new RuntimeException("Can't initialize the main dictionary"); } } |