Fix NPE
NPE has occured while getting containerHeight in LatinIME.onComputeInsets(). Change-Id: Ib906c20791a1f80a5c484a75eead9d2816a9da1b
This commit is contained in:
parent
905a6cdcba
commit
2951aa7e93
1 changed files with 1 additions and 1 deletions
|
@ -855,7 +855,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
|||
public void onComputeInsets(InputMethodService.Insets outInsets) {
|
||||
super.onComputeInsets(outInsets);
|
||||
final KeyboardView inputView = mKeyboardSwitcher.getKeyboardView();
|
||||
if (inputView == null)
|
||||
if (inputView == null || mCandidateViewContainer == null)
|
||||
return;
|
||||
final int containerHeight = mCandidateViewContainer.getHeight();
|
||||
int touchY = containerHeight;
|
||||
|
|
Loading…
Reference in a new issue