Bug #74135101 fix NPE in GroupNameEditDialogFragment in monkey test

[root cause  ] When editing group name and rotating the screen at the same time, PeopleActivity lifecycle the life cycle, at this time, the getActivity of the GroupNameEditDialogFragment's showInputMethod may be null, so NullPointerException may appear.
[changes     ] fix NPE in GroupNameEditDialogFragment in monkey test


Change-Id: Ibf8c6cbb8d3b7a6e68cd921e5822f452f5676f7f
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) {