Fixed NPE by guarding the reference of variable
Bug: 2395174
This commit is contained in:
@@ -1526,6 +1526,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
|
||||
mDialogBuilder.setSingleChoiceItems(mItems, checkedItem,
|
||||
new AlertDialog.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
if (mIms == null) {
|
||||
return;
|
||||
}
|
||||
synchronized (mMethodMap) {
|
||||
InputMethodInfo im = mIms[which];
|
||||
hideInputMethodMenu();
|
||||
|
||||
Reference in New Issue
Block a user