Bug 777505 - Fix possible NPE in getInputMethodManager. r=cpeterson

This commit is contained in:
Kartikaya Gupta 2012-07-26 13:53:51 -04:00
Родитель afa7636167
Коммит ef09dc0ba4
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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);
}