commit | d21ebd74fb229aa347540c0bc1296fb2b8d75949 | [log] [tgz] |
---|---|---|
author | bown.zhang <bown.zhang@spreadtrum.com> | Mon Apr 16 16:13:59 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Mon Apr 16 16:13:59 2018 -0700 |
tree | dd66c87065787b1a23de4de0feb693050220ba57 | |
parent | 06a2bacf93f4f4bdc963913216d0acb783cf07f6 [diff] | |
parent | 7173594e8bff9249792b9a1698cf63420897f23e [diff] |
Merge "Bug #74135101 fix NPE in GroupNameEditDialogFragment in monkey test" am: 7173594e8b Change-Id: I0e96ba104d56e20267db0f44b8b74a1a556f8df7
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) {