Program: 13677
Project: 13677
Buggy source:
@Override public void onViewCreated(View view,Bundle savedInstanceState){
  super.onViewCreated(view,savedInstanceState);
  ImageView image=(ImageView)view.findViewById(R.id.promo_dialog_image);
  image.setImageResource(mDrawableResId);
  LinearLayout imageContainer=(LinearLayout)view.findViewById(R.id.promo_dialog_image_container);
  imageContainer.setVisibility(DisplayUtils.isLandscape(getActivity()) ? View.GONE : View.VISIBLE);
  WPTextView title=(WPTextView)view.findViewById(R.id.promo_dialog_title);
  title.setText(mTitleResId);
  WPTextView titleBeta=(WPTextView)view.findViewById(R.id.promo_dialog_title_beta);
  titleBeta.setText(mTitleBetaId);
  WPTextView description=(WPTextView)view.findViewById(R.id.promo_dialog_description);
  description.setText(mDescriptionResId);
  WPTextView link=(WPTextView)view.findViewById(R.id.promo_dialog_link);
  link.setText(mLinkResId);
  if (mLinkOnClickListener == null) {
    link.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View view){
        ActivityLauncher.showAztecEditorReleaseNotes(getActivity());
        AnalyticsTracker.track(AnalyticsTracker.Stat.EDITOR_AZTEC_PROMO_LINK);
      }
    }
);
  }
 else {
    link.setOnClickListener(mLinkOnClickListener);
  }
  Button buttonNegative=(Button)view.findViewById(R.id.promo_dialog_button_negative);
  buttonNegative.setText(mButtonNegativeResId);
  if (mNegativeButtonOnClickListener == null) {
    buttonNegative.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View view){
        getDialog().cancel();
        AnalyticsTracker.track(AnalyticsTracker.Stat.EDITOR_AZTEC_PROMO_NEGATIVE);
      }
    }
);
  }
 else {
    buttonNegative.setOnClickListener(mNegativeButtonOnClickListener);
  }
  Button buttonPositive=(Button)view.findViewById(R.id.promo_dialog_button_positive);
  buttonPositive.setText(mButtonPositiveResId);
  if (mPositiveButtonOnClickListener == null) {
    buttonPositive.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        getDialog().cancel();
        if (!AppPrefs.isAztecEditorEnabled()) {
          AnalyticsTracker.track(AnalyticsTracker.Stat.EDITOR_AZTEC_PROMO_POSITIVE);
          AppPrefs.setAztecEditorEnabled(true);
          AppPrefs.setVisualEditorEnabled(false);
          SharedPreferences preferences=PreferenceManager.getDefaultSharedPreferences(getActivity());
          preferences.edit().putString(getString(R.string.pref_key_editor_type),"String_Node_Str").apply();
        }
        ActivityLauncher.addNewPostOrPageForResult(getActivity(),((WPMainActivity)getActivity()).getSelectedSite(),false,true);
      }
    }
);
  }
 else {
    buttonPositive.setOnClickListener(mPositiveButtonOnClickListener);
  }
}

Fixed version (ground truth):
@Override public void onViewCreated(View view,Bundle savedInstanceState){
  super.onViewCreated(view,savedInstanceState);
  ImageView image=(ImageView)view.findViewById(R.id.promo_dialog_image);
  image.setImageResource(mDrawableResId);
  LinearLayout imageContainer=(LinearLayout)view.findViewById(R.id.promo_dialog_image_container);
  imageContainer.setVisibility(DisplayUtils.isLandscape(getActivity()) ? View.GONE : View.VISIBLE);
  WPTextView title=(WPTextView)view.findViewById(R.id.promo_dialog_title);
  title.setText(mTitleResId);
  WPTextView titleBeta=(WPTextView)view.findViewById(R.id.promo_dialog_title_beta);
  titleBeta.setText(mTitleBetaId);
  WPTextView description=(WPTextView)view.findViewById(R.id.promo_dialog_description);
  description.setText(mDescriptionResId);
  WPTextView link=(WPTextView)view.findViewById(R.id.promo_dialog_link);
  link.setText(mLinkResId);
  if (mLinkOnClickListener == null) {
    link.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View view){
        ActivityLauncher.showAztecEditorReleaseNotes(getActivity());
        AnalyticsTracker.track(AnalyticsTracker.Stat.EDITOR_AZTEC_PROMO_LINK);
      }
    }
);
  }
 else {
    link.setOnClickListener(mLinkOnClickListener);
  }
  Button buttonNegative=(Button)view.findViewById(R.id.promo_dialog_button_negative);
  buttonNegative.setText(mButtonNegativeResId);
  if (mNegativeButtonOnClickListener == null) {
    buttonNegative.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View view){
        getDialog().cancel();
        AnalyticsTracker.track(AnalyticsTracker.Stat.EDITOR_AZTEC_PROMO_NEGATIVE);
      }
    }
);
  }
 else {
    buttonNegative.setOnClickListener(mNegativeButtonOnClickListener);
  }
  Button buttonPositive=(Button)view.findViewById(R.id.promo_dialog_button_positive);
  buttonPositive.setText(mButtonPositiveResId);
  if (mPositiveButtonOnClickListener == null) {
    buttonPositive.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        getDialog().cancel();
        if (!AppPrefs.isAztecEditorEnabled()) {
          AnalyticsTracker.track(AnalyticsTracker.Stat.EDITOR_AZTEC_PROMO_POSITIVE);
          AppPrefs.setAztecEditorEnabled(true);
          AppPrefs.setVisualEditorEnabled(false);
          AppPrefs.setNewEditorPromoRequired(false);
        }
        ActivityLauncher.addNewPostOrPageForResult(getActivity(),((WPMainActivity)getActivity()).getSelectedSite(),false,true);
      }
    }
);
  }
 else {
    buttonPositive.setOnClickListener(mPositiveButtonOnClickListener);
  }
}