commit | 7173594e8bff9249792b9a1698cf63420897f23e | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Mon Apr 16 23:00:56 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Apr 16 23:00:56 2018 +0000 |
tree | dd66c87065787b1a23de4de0feb693050220ba57 | |
parent | a1287f7872644b161311222ab03a0c26562db2ea [diff] | |
parent | c5d34d1f6d1314e8016f4578209cdeef36cbd8ea [diff] |
Merge "Bug #74135101 fix NPE in GroupNameEditDialogFragment in monkey test"
diff --git a/src/com/android/contacts/group/GroupNameEditDialogFragment.java b/src/com/android/contacts/group/GroupNameEditDialogFragment.java index 853b8fc..e4fb89b 100644 --- a/src/com/android/contacts/group/GroupNameEditDialogFragment.java +++ b/src/com/android/contacts/group/GroupNameEditDialogFragment.java
@@ -318,6 +318,9 @@ } private void showInputMethod(View view) { + if (getActivity() == null) { + return; + } final InputMethodManager imm = (InputMethodManager) getActivity().getSystemService( Context.INPUT_METHOD_SERVICE); if (imm != null) {