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) {