diff options
author | 2014-01-10 05:13:47 +0000 | |
---|---|---|
committer | 2014-01-10 05:13:47 +0000 | |
commit | 958e4520250e8f2ddcbbbd56afc713262bf1a9f1 (patch) | |
tree | 82c2d4060eddbe5fca1fbb3f80aa7c7b730c61c4 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | 84a3047e801923bd486b0cff2f9ea0de25d7e3ba (diff) | |
parent | e1de87ae6984140607d2ca05c064cc69f00b95c1 (diff) | |
download | latinime-958e4520250e8f2ddcbbbd56afc713262bf1a9f1.tar.gz latinime-958e4520250e8f2ddcbbbd56afc713262bf1a9f1.tar.xz latinime-958e4520250e8f2ddcbbbd56afc713262bf1a9f1.zip |
Merge "Fix an NPE."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index 3de7e3530..92b6a8544 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -69,7 +69,8 @@ public final class InputLogic { // TODO : Remove this member when we can. private final LatinIME mLatinIME; - private InputLogicHandler mInputLogicHandler; + // Never null. + private InputLogicHandler mInputLogicHandler = InputLogicHandler.NULL_HANDLER; // TODO : make all these fields private as soon as possible. // Current space state of the input method. This can be any of the above constants. @@ -105,7 +106,7 @@ public final class InputLogic { mWordComposer = new WordComposer(); mEventInterpreter = new EventInterpreter(latinIME); mConnection = new RichInputConnection(latinIME); - mInputLogicHandler = null; + mInputLogicHandler = InputLogicHandler.NULL_HANDLER; } /** @@ -145,7 +146,7 @@ public final class InputLogic { } resetComposingState(true /* alsoResetLastComposedWord */); mInputLogicHandler.destroy(); - mInputLogicHandler = null; + mInputLogicHandler = InputLogicHandler.NULL_HANDLER; } /** |