Program: 32208
Project: 32208
Buggy source:
@Override public boolean onOptionsItemSelected(MenuItem item){
  int id=item.getItemId();
  if (id == R.id.ic_action_invite_by_list) {
    FragmentManager fm=getSupportFragmentManager();
    MembersInvitationDialogFragment fragment=(MembersInvitationDialogFragment)fm.findFragmentByTag(TAG_FRAGMENT_INVITATION_MEMBERS_DIALOG);
    if (fragment != null) {
      fragment.dismissAllowingStateLoss();
    }
    fragment=MembersInvitationDialogFragment.newInstance(mRoom.getRoomId());
    fragment.show(fm,TAG_FRAGMENT_INVITATION_MEMBERS_DIALOG);
  }
 else   if (id == R.id.ic_action_invite_by_name) {
    AlertDialog alert=CommonActivityUtils.createEditTextAlert(RoomActivity.this,RoomActivity.this.getResources().getString(R.string.title_activity_invite_user),RoomActivity.this.getResources().getString(R.string.room_creation_participants_hint),null,new CommonActivityUtils.OnSubmitListener(){
      @Override public void onSubmit(      final String text){
        if (TextUtils.isEmpty(text)) {
          return;
        }
        String homeServerSuffix=mMyUserId.substring(mMyUserId.indexOf("String_Node_Str"),mMyUserId.length());
        ArrayList<String> userIDsList=CommonActivityUtils.parseUserIDsList(text,homeServerSuffix);
        if (userIDsList.size() > 0) {
          mRoom.invite(userIDsList,new SimpleApiCallback<Void>(RoomActivity.this){
            @Override public void onSuccess(            Void info){
              Toast.makeText(getApplicationContext(),"String_Node_Str" + text.trim() + "String_Node_Str",Toast.LENGTH_LONG).show();
            }
          }
);
        }
      }
      @Override public void onCancelled(){
      }
    }
);
    alert.show();
  }
 else   if (id == R.id.ic_action_members) {
    FragmentManager fm=getSupportFragmentManager();
    RoomMembersDialogFragment fragment=(RoomMembersDialogFragment)fm.findFragmentByTag(TAG_FRAGMENT_MEMBERS_DIALOG);
    if (fragment != null) {
      fragment.dismissAllowingStateLoss();
    }
    fragment=RoomMembersDialogFragment.newInstance(mRoom.getRoomId());
    fragment.show(fm,TAG_FRAGMENT_MEMBERS_DIALOG);
  }
 else   if (id == R.id.ic_action_room_info) {
    Intent startRoomInfoIntent=new Intent(RoomActivity.this,RoomInfoActivity.class);
    startRoomInfoIntent.putExtra(EXTRA_ROOM_ID,mRoom.getRoomId());
    startRoomInfoIntent.putExtra(EXTRA_FROM_MX_USER_ID,mMyUserId);
    startActivity(startRoomInfoIntent);
  }
 else   if (id == R.id.ic_action_leave) {
    mRoom.leave(new SimpleApiCallback<Void>(RoomActivity.this){
    }
);
    RoomActivity.this.finish();
  }
 else   if (id == R.id.ic_action_settings) {
    RoomActivity.this.startActivity(new Intent(RoomActivity.this,SettingsActivity.class));
  }
 else   if (id == R.id.ic_send_bug_report) {
    RageShake.getInstance().sendBugReport();
  }
  return super.onOptionsItemSelected(item);
}

Fixed version (ground truth):
@Override public boolean onOptionsItemSelected(MenuItem item){
  int id=item.getItemId();
  if (id == R.id.ic_action_invite_by_list) {
    FragmentManager fm=getSupportFragmentManager();
    MembersInvitationDialogFragment fragment=(MembersInvitationDialogFragment)fm.findFragmentByTag(TAG_FRAGMENT_INVITATION_MEMBERS_DIALOG);
    if (fragment != null) {
      fragment.dismissAllowingStateLoss();
    }
    fragment=MembersInvitationDialogFragment.newInstance(mRoom.getRoomId());
    fragment.show(fm,TAG_FRAGMENT_INVITATION_MEMBERS_DIALOG);
  }
 else   if (id == R.id.ic_action_invite_by_name) {
    AlertDialog alert=CommonActivityUtils.createEditTextAlert(RoomActivity.this,RoomActivity.this.getResources().getString(R.string.title_activity_invite_user),RoomActivity.this.getResources().getString(R.string.room_creation_participants_hint),null,new CommonActivityUtils.OnSubmitListener(){
      @Override public void onSubmit(      final String text){
        if (TextUtils.isEmpty(text)) {
          return;
        }
        String homeServerSuffix=mMyUserId.substring(mMyUserId.indexOf("String_Node_Str"),mMyUserId.length());
        ArrayList<String> userIDsList=CommonActivityUtils.parseUserIDsList(text,homeServerSuffix);
        if (userIDsList.size() > 0) {
          mRoom.invite(userIDsList,new SimpleApiCallback<Void>(RoomActivity.this){
            @Override public void onSuccess(            Void info){
              Toast.makeText(getApplicationContext(),"String_Node_Str" + text.trim() + "String_Node_Str",Toast.LENGTH_LONG).show();
            }
          }
);
        }
      }
      @Override public void onCancelled(){
      }
    }
);
    alert.show();
  }
 else   if (id == R.id.ic_action_members) {
    FragmentManager fm=getSupportFragmentManager();
    RoomMembersDialogFragment fragment=(RoomMembersDialogFragment)fm.findFragmentByTag(TAG_FRAGMENT_MEMBERS_DIALOG);
    if (fragment != null) {
      fragment.dismissAllowingStateLoss();
    }
    fragment=RoomMembersDialogFragment.newInstance(mRoom.getRoomId());
    fragment.show(fm,TAG_FRAGMENT_MEMBERS_DIALOG);
  }
 else   if (id == R.id.ic_action_room_info) {
    Intent startRoomInfoIntent=new Intent(RoomActivity.this,RoomInfoActivity.class);
    startRoomInfoIntent.putExtra(EXTRA_ROOM_ID,mRoom.getRoomId());
    startRoomInfoIntent.putExtra(EXTRA_ACCOUNT_ID,mMyUserId);
    startActivity(startRoomInfoIntent);
  }
 else   if (id == R.id.ic_action_leave) {
    mRoom.leave(new SimpleApiCallback<Void>(RoomActivity.this){
    }
);
    RoomActivity.this.finish();
  }
 else   if (id == R.id.ic_action_settings) {
    RoomActivity.this.startActivity(new Intent(RoomActivity.this,SettingsActivity.class));
  }
 else   if (id == R.id.ic_send_bug_report) {
    RageShake.getInstance().sendBugReport();
  }
  return super.onOptionsItemSelected(item);
}