Program: 184018
Project: 184018
Buggy source:
@Override protected void onCreate(Bundle icicle){
  super.onCreate(icicle);
  final Intent intent=getIntent();
  String title=intent.getStringExtra(UI.TITLE_EXTRA_KEY);
  if (title != null) {
    setTitle(title);
  }
  final String action=intent.getAction();
  mMode=MODE_UNKNOWN;
  Log.i(TAG,"String_Node_Str" + action);
  if (UI.LIST_DEFAULT.equals(action)) {
    mMode=MODE_DEFAULT;
  }
 else   if (UI.LIST_GROUP_ACTION.equals(action)) {
    mMode=MODE_GROUP;
    String groupName=intent.getStringExtra(UI.GROUP_NAME_EXTRA_KEY);
    if (TextUtils.isEmpty(groupName)) {
      finish();
      return;
    }
    buildUserGroupUri(groupName);
  }
 else   if (UI.LIST_ALL_CONTACTS_ACTION.equals(action)) {
    mMode=MODE_CUSTOM;
    mDisplayOnlyPhones=false;
  }
 else   if (UI.LIST_STARRED_ACTION.equals(action)) {
    mMode=MODE_STARRED;
  }
 else   if (UI.LIST_FREQUENT_ACTION.equals(action)) {
    mMode=MODE_FREQUENT;
  }
 else   if (UI.LIST_STREQUENT_ACTION.equals(action)) {
    mMode=MODE_STREQUENT;
  }
 else   if (UI.LIST_CONTACTS_WITH_PHONES_ACTION.equals(action)) {
    mMode=MODE_CUSTOM;
    mDisplayOnlyPhones=true;
  }
 else   if (Intent.ACTION_PICK.equals(action)) {
    final String type=intent.resolveType(this);
    if (Contacts.CONTENT_TYPE.equals(type)) {
      mMode=MODE_PICK_CONTACT;
    }
 else     if (People.CONTENT_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_PERSON;
    }
 else     if (Phone.CONTENT_TYPE.equals(type)) {
      mMode=MODE_PICK_PHONE;
    }
 else     if (Phones.CONTENT_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_PHONE;
    }
 else     if (StructuredPostal.CONTENT_TYPE.equals(type)) {
      mMode=MODE_PICK_POSTAL;
    }
 else     if (ContactMethods.CONTENT_POSTAL_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_POSTAL;
    }
  }
 else   if (Intent.ACTION_CREATE_SHORTCUT.equals(action)) {
    if (intent.getComponent().getClassName().equals("String_Node_Str")) {
      mMode=MODE_PICK_PHONE;
      mShortcutAction=Intent.ACTION_CALL;
      setTitle(R.string.callShortcutActivityTitle);
    }
 else     if (intent.getComponent().getClassName().equals("String_Node_Str")) {
      mMode=MODE_PICK_PHONE;
      mShortcutAction=Intent.ACTION_SENDTO;
      setTitle(R.string.messageShortcutActivityTitle);
    }
 else {
      mMode=MODE_PICK_OR_CREATE_CONTACT;
      mShortcutAction=Intent.ACTION_VIEW;
      setTitle(R.string.shortcutActivityTitle);
    }
  }
 else   if (Intent.ACTION_GET_CONTENT.equals(action)) {
    final String type=intent.resolveType(this);
    if (Contacts.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_PICK_OR_CREATE_CONTACT;
    }
 else     if (Phone.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_PICK_PHONE;
    }
 else     if (Phones.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_PHONE;
    }
 else     if (StructuredPostal.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_PICK_POSTAL;
    }
 else     if (ContactMethods.CONTENT_POSTAL_ITEM_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_POSTAL;
    }
 else     if (People.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_OR_CREATE_PERSON;
    }
  }
 else   if (Intent.ACTION_INSERT_OR_EDIT.equals(action)) {
    mMode=MODE_INSERT_OR_EDIT_CONTACT;
  }
 else   if (Intent.ACTION_SEARCH.equals(action)) {
    if ("String_Node_Str".equals(intent.getStringExtra(SearchManager.ACTION_MSG))) {
      String query=intent.getStringExtra(SearchManager.QUERY);
      if (!TextUtils.isEmpty(query)) {
        Intent newIntent=new Intent(Intent.ACTION_CALL_PRIVILEGED,Uri.fromParts("String_Node_Str",query,null));
        startActivity(newIntent);
      }
      finish();
      return;
    }
    if (intent.hasExtra(Insert.EMAIL)) {
      mMode=MODE_QUERY_PICK_TO_VIEW;
      mQueryMode=QUERY_MODE_MAILTO;
      mQueryData=intent.getStringExtra(Insert.EMAIL);
    }
 else     if (intent.hasExtra(Insert.PHONE)) {
      mMode=MODE_QUERY_PICK_TO_VIEW;
      mQueryMode=QUERY_MODE_TEL;
      mQueryData=intent.getStringExtra(Insert.PHONE);
    }
 else {
      mMode=MODE_QUERY;
    }
    mMode=MODE_QUERY;
  }
 else   if (Intents.SEARCH_SUGGESTION_CLICKED.equals(action)) {
    Uri data=intent.getData();
    Uri telUri=null;
    if (sContactsIdMatcher.match(data) == CONTACTS_ID) {
      long contactId=Long.valueOf(data.getLastPathSegment());
      final Cursor cursor=queryPhoneNumbers(contactId);
      if (cursor != null) {
        if (cursor.getCount() == 1 && cursor.moveToFirst()) {
          int phoneNumberIndex=cursor.getColumnIndex(Phone.NUMBER);
          String phoneNumber=cursor.getString(phoneNumberIndex);
          telUri=Uri.parse("String_Node_Str" + phoneNumber);
        }
        cursor.close();
      }
    }
    Intent newIntent;
    if ("String_Node_Str".equals(intent.getStringExtra(SearchManager.ACTION_MSG)) && telUri != null) {
      newIntent=new Intent(Intent.ACTION_CALL_PRIVILEGED,telUri);
    }
 else {
      newIntent=new Intent(Intent.ACTION_VIEW,data);
    }
    startActivity(newIntent);
    finish();
    return;
  }
 else   if (Intents.SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED.equals(action)) {
    Intent newIntent=new Intent(Intent.ACTION_CALL_PRIVILEGED,intent.getData());
    startActivity(newIntent);
    finish();
    return;
  }
 else   if (Intents.SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED.equals(action)) {
    String number=intent.getData().getSchemeSpecificPart();
    Intent newIntent=new Intent(Intent.ACTION_INSERT,Contacts.CONTENT_URI);
    newIntent.putExtra(Intents.Insert.PHONE,number);
    startActivity(newIntent);
    finish();
    return;
  }
  if (JOIN_AGGREGATE.equals(action)) {
    mMode=MODE_JOIN_CONTACT;
    mQueryAggregateId=intent.getLongExtra(EXTRA_AGGREGATE_ID,-1);
    if (mQueryAggregateId == -1) {
      Log.e(TAG,"String_Node_Str" + action + "String_Node_Str"+ EXTRA_AGGREGATE_ID);
      setResult(RESULT_CANCELED);
      finish();
    }
  }
  if (mMode == MODE_UNKNOWN) {
    mMode=MODE_DEFAULT;
  }
  if (mMode == MODE_JOIN_CONTACT) {
    setContentView(R.layout.contacts_list_content_join);
    TextView blurbView=(TextView)findViewById(R.id.join_contact_blurb);
    String contactName=intent.getStringExtra(EXTRA_AGGREGATE_NAME);
    if (contactName == null) {
      contactName="String_Node_Str";
    }
    String blurb=getString(R.string.blurbJoinContactDataWith,contactName);
    blurbView.setText(blurb);
    mJoinModeShowAllContacts=true;
  }
 else {
    setContentView(R.layout.contacts_list_content);
  }
  final ListView list=getListView();
  list.setDividerHeight(0);
  list.setFocusable(true);
  list.setOnCreateContextMenuListener(this);
  if ((mMode & MODE_MASK_NO_FILTER) != MODE_MASK_NO_FILTER) {
    list.setTextFilterEnabled(true);
  }
  if ((mMode & MODE_MASK_CREATE_NEW) != 0) {
    final LayoutInflater inflater=getLayoutInflater();
    View header=inflater.inflate(R.layout.create_new_contact,list,false);
    list.addHeaderView(header);
  }
  setEmptyText();
  mAdapter=new ContactItemListAdapter(this);
  setListAdapter(mAdapter);
  getListView().setOnScrollListener(mAdapter);
  list.setSaveEnabled(false);
  mQueryHandler=new QueryHandler(this);
  mJustCreated=true;
  mSyncEnabled=true;
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle icicle){
  super.onCreate(icicle);
  final Intent intent=getIntent();
  String title=intent.getStringExtra(UI.TITLE_EXTRA_KEY);
  if (title != null) {
    setTitle(title);
  }
  final String action=intent.getAction();
  mMode=MODE_UNKNOWN;
  Log.i(TAG,"String_Node_Str" + action);
  if (UI.LIST_DEFAULT.equals(action)) {
    mMode=MODE_DEFAULT;
  }
 else   if (UI.LIST_GROUP_ACTION.equals(action)) {
    mMode=MODE_GROUP;
    String groupName=intent.getStringExtra(UI.GROUP_NAME_EXTRA_KEY);
    if (TextUtils.isEmpty(groupName)) {
      finish();
      return;
    }
    buildUserGroupUri(groupName);
  }
 else   if (UI.LIST_ALL_CONTACTS_ACTION.equals(action)) {
    mMode=MODE_CUSTOM;
    mDisplayOnlyPhones=false;
  }
 else   if (UI.LIST_STARRED_ACTION.equals(action)) {
    mMode=MODE_STARRED;
  }
 else   if (UI.LIST_FREQUENT_ACTION.equals(action)) {
    mMode=MODE_FREQUENT;
  }
 else   if (UI.LIST_STREQUENT_ACTION.equals(action)) {
    mMode=MODE_STREQUENT;
  }
 else   if (UI.LIST_CONTACTS_WITH_PHONES_ACTION.equals(action)) {
    mMode=MODE_CUSTOM;
    mDisplayOnlyPhones=true;
  }
 else   if (Intent.ACTION_PICK.equals(action)) {
    final String type=intent.resolveType(this);
    if (Contacts.CONTENT_TYPE.equals(type)) {
      mMode=MODE_PICK_CONTACT;
    }
 else     if (People.CONTENT_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_PERSON;
    }
 else     if (Phone.CONTENT_TYPE.equals(type)) {
      mMode=MODE_PICK_PHONE;
    }
 else     if (Phones.CONTENT_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_PHONE;
    }
 else     if (StructuredPostal.CONTENT_TYPE.equals(type)) {
      mMode=MODE_PICK_POSTAL;
    }
 else     if (ContactMethods.CONTENT_POSTAL_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_POSTAL;
    }
  }
 else   if (Intent.ACTION_CREATE_SHORTCUT.equals(action)) {
    if (intent.getComponent().getClassName().equals("String_Node_Str")) {
      mMode=MODE_PICK_PHONE;
      mShortcutAction=Intent.ACTION_CALL;
      setTitle(R.string.callShortcutActivityTitle);
    }
 else     if (intent.getComponent().getClassName().equals("String_Node_Str")) {
      mMode=MODE_PICK_PHONE;
      mShortcutAction=Intent.ACTION_SENDTO;
      setTitle(R.string.messageShortcutActivityTitle);
    }
 else {
      mMode=MODE_PICK_OR_CREATE_CONTACT;
      mShortcutAction=Intent.ACTION_VIEW;
      setTitle(R.string.shortcutActivityTitle);
    }
  }
 else   if (Intent.ACTION_GET_CONTENT.equals(action)) {
    final String type=intent.resolveType(this);
    if (Contacts.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_PICK_OR_CREATE_CONTACT;
    }
 else     if (Phone.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_PICK_PHONE;
    }
 else     if (Phones.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_PHONE;
    }
 else     if (StructuredPostal.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_PICK_POSTAL;
    }
 else     if (ContactMethods.CONTENT_POSTAL_ITEM_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_POSTAL;
    }
 else     if (People.CONTENT_ITEM_TYPE.equals(type)) {
      mMode=MODE_LEGACY_PICK_OR_CREATE_PERSON;
    }
  }
 else   if (Intent.ACTION_INSERT_OR_EDIT.equals(action)) {
    mMode=MODE_INSERT_OR_EDIT_CONTACT;
  }
 else   if (Intent.ACTION_SEARCH.equals(action)) {
    if ("String_Node_Str".equals(intent.getStringExtra(SearchManager.ACTION_MSG))) {
      String query=intent.getStringExtra(SearchManager.QUERY);
      if (!TextUtils.isEmpty(query)) {
        Intent newIntent=new Intent(Intent.ACTION_CALL_PRIVILEGED,Uri.fromParts("String_Node_Str",query,null));
        startActivity(newIntent);
      }
      finish();
      return;
    }
    if (intent.hasExtra(Insert.EMAIL)) {
      mMode=MODE_QUERY_PICK_TO_VIEW;
      mQueryMode=QUERY_MODE_MAILTO;
      mQueryData=intent.getStringExtra(Insert.EMAIL);
    }
 else     if (intent.hasExtra(Insert.PHONE)) {
      mMode=MODE_QUERY_PICK_TO_VIEW;
      mQueryMode=QUERY_MODE_TEL;
      mQueryData=intent.getStringExtra(Insert.PHONE);
    }
 else {
      mMode=MODE_QUERY;
      mQueryData=getIntent().getStringExtra(SearchManager.QUERY);
    }
  }
 else   if (Intents.SEARCH_SUGGESTION_CLICKED.equals(action)) {
    Uri data=intent.getData();
    Uri telUri=null;
    if (sContactsIdMatcher.match(data) == CONTACTS_ID) {
      long contactId=Long.valueOf(data.getLastPathSegment());
      final Cursor cursor=queryPhoneNumbers(contactId);
      if (cursor != null) {
        if (cursor.getCount() == 1 && cursor.moveToFirst()) {
          int phoneNumberIndex=cursor.getColumnIndex(Phone.NUMBER);
          String phoneNumber=cursor.getString(phoneNumberIndex);
          telUri=Uri.parse("String_Node_Str" + phoneNumber);
        }
        cursor.close();
      }
    }
    Intent newIntent;
    if ("String_Node_Str".equals(intent.getStringExtra(SearchManager.ACTION_MSG)) && telUri != null) {
      newIntent=new Intent(Intent.ACTION_CALL_PRIVILEGED,telUri);
    }
 else {
      newIntent=new Intent(Intent.ACTION_VIEW,data);
    }
    startActivity(newIntent);
    finish();
    return;
  }
 else   if (Intents.SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED.equals(action)) {
    Intent newIntent=new Intent(Intent.ACTION_CALL_PRIVILEGED,intent.getData());
    startActivity(newIntent);
    finish();
    return;
  }
 else   if (Intents.SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED.equals(action)) {
    String number=intent.getData().getSchemeSpecificPart();
    Intent newIntent=new Intent(Intent.ACTION_INSERT,Contacts.CONTENT_URI);
    newIntent.putExtra(Intents.Insert.PHONE,number);
    startActivity(newIntent);
    finish();
    return;
  }
  if (JOIN_AGGREGATE.equals(action)) {
    mMode=MODE_JOIN_CONTACT;
    mQueryAggregateId=intent.getLongExtra(EXTRA_AGGREGATE_ID,-1);
    if (mQueryAggregateId == -1) {
      Log.e(TAG,"String_Node_Str" + action + "String_Node_Str"+ EXTRA_AGGREGATE_ID);
      setResult(RESULT_CANCELED);
      finish();
    }
  }
  if (mMode == MODE_UNKNOWN) {
    mMode=MODE_DEFAULT;
  }
  if (mMode == MODE_JOIN_CONTACT) {
    setContentView(R.layout.contacts_list_content_join);
    TextView blurbView=(TextView)findViewById(R.id.join_contact_blurb);
    String contactName=intent.getStringExtra(EXTRA_AGGREGATE_NAME);
    if (contactName == null) {
      contactName="String_Node_Str";
    }
    String blurb=getString(R.string.blurbJoinContactDataWith,contactName);
    blurbView.setText(blurb);
    mJoinModeShowAllContacts=true;
  }
 else {
    setContentView(R.layout.contacts_list_content);
  }
  final ListView list=getListView();
  list.setDividerHeight(0);
  list.setFocusable(true);
  list.setOnCreateContextMenuListener(this);
  if ((mMode & MODE_MASK_NO_FILTER) != MODE_MASK_NO_FILTER) {
    list.setTextFilterEnabled(true);
  }
  if ((mMode & MODE_MASK_CREATE_NEW) != 0) {
    final LayoutInflater inflater=getLayoutInflater();
    View header=inflater.inflate(R.layout.create_new_contact,list,false);
    list.addHeaderView(header);
  }
  setEmptyText();
  mAdapter=new ContactItemListAdapter(this);
  setListAdapter(mAdapter);
  getListView().setOnScrollListener(mAdapter);
  list.setSaveEnabled(false);
  mQueryHandler=new QueryHandler(this);
  mJustCreated=true;
  mSyncEnabled=true;
}