зеркало из https://github.com/mozilla/gecko-dev.git
Bug 777505 - Fix possible NPE in getInputMethodManager. r=cpeterson
This commit is contained in:
Родитель
afa7636167
Коммит
ef09dc0ba4
|
@ -436,7 +436,11 @@ public class GeckoInputConnection
|
|||
}
|
||||
|
||||
private static InputMethodManager getInputMethodManager() {
|
||||
Context context = getView().getContext();
|
||||
View view = getView();
|
||||
if (view == null) {
|
||||
return null;
|
||||
}
|
||||
Context context = view.getContext();
|
||||
return InputMethods.getInputMethodManager(context);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче