Program: 96180
Project: 96180
Buggy source:
@Override public Dialog onCreateDialog(Bundle savedInstanceState){
  LayoutInflater inflater=getActivity().getLayoutInflater();
  final View addView=inflater.inflate(R.layout.dialog_armor_set_builder_edit_talisman,null);
  skillTreeViews=new ArmorSetBuilderTalismanSkillContainer[2];
  skillTreeViews[0]=(ArmorSetBuilderTalismanSkillContainer)addView.findViewById(R.id.skill_1_view);
  skillTreeViews[0].setContainer(this);
  skillTreeViews[1]=(ArmorSetBuilderTalismanSkillContainer)addView.findViewById(R.id.skill_2_view);
  skillTreeViews[1].setContainer(this);
  initializeTypeSpinner(addView);
  Dialog d=new AlertDialog.Builder(getActivity()).setTitle(R.string.armor_set_builder_talisman_dialog_title).setView(addView).setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int which){
      if (skillTreeViews[0].hasSkillDefined()) {
        Intent i=new Intent();
        long skill1Id=skillTreeViews[0].getSkillTree().getId();
        int skill1Points=skillTreeViews[0].getSkillPoints();
        i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_SKILL_TREE_1,skill1Id);
        i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_SKILL_POINTS_1,skill1Points);
        i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_TYPE_INDEX,talismanTypeIndex);
        if (skillTreeViews[1].hasSkillDefined()) {
          Log.d("String_Node_Str","String_Node_Str");
          long skill2Id=skillTreeViews[0].getSkillTree().getId();
          int skill2Points=skillTreeViews[1].getSkillPoints();
          i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_SKILL_TREE_2,skill2Id);
          i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_SKILL_POINTS_2,skill2Points);
        }
        getTargetFragment().onActivityResult(ArmorSetBuilderActivity.REQUEST_CODE_CREATE_TALISMAN,Activity.RESULT_OK,i);
      }
    }
  }
).create();
  return d;
}

Fixed version (ground truth):
@Override public Dialog onCreateDialog(Bundle savedInstanceState){
  LayoutInflater inflater=getActivity().getLayoutInflater();
  final View addView=inflater.inflate(R.layout.dialog_armor_set_builder_edit_talisman,null);
  skillTreeViews=new ArmorSetBuilderTalismanSkillContainer[2];
  skillTreeViews[0]=(ArmorSetBuilderTalismanSkillContainer)addView.findViewById(R.id.skill_1_view);
  skillTreeViews[0].setContainer(this);
  skillTreeViews[1]=(ArmorSetBuilderTalismanSkillContainer)addView.findViewById(R.id.skill_2_view);
  skillTreeViews[1].setContainer(this);
  initializeTypeSpinner(addView);
  Dialog d=new AlertDialog.Builder(getActivity()).setTitle(R.string.armor_set_builder_talisman_dialog_title).setView(addView).setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int which){
      if (skillTreeViews[0].hasSkillDefined()) {
        Intent i=new Intent();
        long skill1Id=skillTreeViews[0].getSkillTree().getId();
        int skill1Points=skillTreeViews[0].getSkillPoints();
        i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_SKILL_TREE_1,skill1Id);
        i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_SKILL_POINTS_1,skill1Points);
        i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_TYPE_INDEX,talismanTypeIndex);
        if (skillTreeViews[1].hasSkillDefined()) {
          Log.d("String_Node_Str","String_Node_Str");
          long skill2Id=skillTreeViews[1].getSkillTree().getId();
          int skill2Points=skillTreeViews[1].getSkillPoints();
          i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_SKILL_TREE_2,skill2Id);
          i.putExtra(ArmorSetBuilderActivity.EXTRA_TALISMAN_SKILL_POINTS_2,skill2Points);
        }
        getTargetFragment().onActivityResult(ArmorSetBuilderActivity.REQUEST_CODE_CREATE_TALISMAN,Activity.RESULT_OK,i);
      }
    }
  }
).create();
  return d;
}