Program: 13878
Project: 13878
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  getDialog().getWindow().setBackgroundDrawable(getResources().getDrawable(R.color.nux_alert_bg));
  View v=inflater.inflate(R.layout.signin_dialog_fragment,container,false);
  mImageView=(ImageView)v.findViewById(R.id.nux_dialog_image);
  mTitleTextView=(WPTextView)v.findViewById(R.id.nux_dialog_title);
  mDescriptionTextView=(WPTextView)v.findViewById(R.id.nux_dialog_description);
  mFooterBottomButton=(WPTextView)v.findViewById(R.id.nux_dialog_first_button);
  mFooterTopButton=(WPTextView)v.findViewById(R.id.nux_dialog_third_button);
  mFooterCenterButton=(WPTextView)v.findViewById(R.id.nux_dialog_second_button);
  final Bundle arguments=getArguments();
  mTitleTextView.setText(arguments.getString(ARG_TITLE));
  mDescriptionTextView.setText(arguments.getString(ARG_DESCRIPTION));
  mImageView.setImageResource(arguments.getInt(ARG_IMAGE));
  View.OnClickListener clickListenerDismiss=new View.OnClickListener(){
    @Override public void onClick(    View v){
      dismissAllowingStateLoss();
    }
  }
;
  View.OnClickListener clickListenerSecondButton=new View.OnClickListener(){
    @Override public void onClick(    View v){
      onClickAction(v,arguments.getInt(ARG_SECOND_BUTTON_ACTION,0),arguments);
    }
  }
;
  View.OnClickListener clickListenerThirdButton=new View.OnClickListener(){
    @Override public void onClick(    View v){
      onClickAction(v,arguments.getInt(ARG_THIRD_BUTTON_ACTION,0),arguments);
    }
  }
;
switch (arguments.getInt(ARG_NUMBER_OF_BUTTONS,1)) {
case 1:
    mFooterCenterButton.setText(arguments.getString(ARG_FIRST_BUTTON_LABEL));
  mFooterCenterButton.setOnClickListener(clickListenerDismiss);
mFooterBottomButton.setVisibility(View.GONE);
mFooterTopButton.setVisibility(View.GONE);
break;
case 2:
mFooterBottomButton.setText(arguments.getString(ARG_FIRST_BUTTON_LABEL));
mFooterTopButton.setText(arguments.getString(ARG_SECOND_BUTTON_LABEL));
mFooterCenterButton.setVisibility(View.GONE);
mFooterTopButton.setOnClickListener(clickListenerSecondButton);
break;
case 3:
mFooterBottomButton.setText(arguments.getString(ARG_FIRST_BUTTON_LABEL));
mFooterCenterButton.setText(arguments.getString(ARG_SECOND_BUTTON_LABEL));
mFooterCenterButton.setOnClickListener(clickListenerSecondButton);
mFooterTopButton.setText(arguments.getString(ARG_THIRD_BUTTON_LABEL));
mFooterTopButton.setOnClickListener(clickListenerThirdButton);
break;
}
v.setClickable(true);
v.setOnClickListener(clickListenerDismiss);
mFooterBottomButton.setOnClickListener(clickListenerDismiss);
return v;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  if (getDialog().getWindow() != null) {
    getDialog().getWindow().setBackgroundDrawable(getResources().getDrawable(R.color.nux_alert_bg));
  }
  View v=inflater.inflate(R.layout.signin_dialog_fragment,container,false);
  ImageView imageView=(ImageView)v.findViewById(R.id.nux_dialog_image);
  WPTextView titleTextView=(WPTextView)v.findViewById(R.id.nux_dialog_title);
  WPTextView descriptionTextView=(WPTextView)v.findViewById(R.id.nux_dialog_description);
  WPTextView footerBottomButton=(WPTextView)v.findViewById(R.id.nux_dialog_first_button);
  WPTextView footerTopButton=(WPTextView)v.findViewById(R.id.nux_dialog_third_button);
  WPTextView footerCenterButton=(WPTextView)v.findViewById(R.id.nux_dialog_second_button);
  final Bundle arguments=getArguments();
  titleTextView.setText(arguments.getString(ARG_TITLE));
  descriptionTextView.setText(arguments.getString(ARG_DESCRIPTION));
  imageView.setImageResource(arguments.getInt(ARG_IMAGE));
  View.OnClickListener clickListenerDismiss=new View.OnClickListener(){
    @Override public void onClick(    View v){
      dismissAllowingStateLoss();
    }
  }
;
  View.OnClickListener clickListenerSecondButton=new View.OnClickListener(){
    @Override public void onClick(    View v){
      onClickAction(v,arguments.getInt(ARG_SECOND_BUTTON_ACTION,0),arguments);
    }
  }
;
  View.OnClickListener clickListenerThirdButton=new View.OnClickListener(){
    @Override public void onClick(    View v){
      onClickAction(v,arguments.getInt(ARG_THIRD_BUTTON_ACTION,0),arguments);
    }
  }
;
switch (arguments.getInt(ARG_NUMBER_OF_BUTTONS,1)) {
case 1:
    footerCenterButton.setText(arguments.getString(ARG_FIRST_BUTTON_LABEL));
  footerCenterButton.setOnClickListener(clickListenerDismiss);
footerBottomButton.setVisibility(View.GONE);
footerTopButton.setVisibility(View.GONE);
break;
case 2:
footerBottomButton.setText(arguments.getString(ARG_FIRST_BUTTON_LABEL));
footerTopButton.setText(arguments.getString(ARG_SECOND_BUTTON_LABEL));
footerCenterButton.setVisibility(View.GONE);
footerTopButton.setOnClickListener(clickListenerSecondButton);
break;
case 3:
footerBottomButton.setText(arguments.getString(ARG_FIRST_BUTTON_LABEL));
footerCenterButton.setText(arguments.getString(ARG_SECOND_BUTTON_LABEL));
footerCenterButton.setOnClickListener(clickListenerSecondButton);
footerTopButton.setText(arguments.getString(ARG_THIRD_BUTTON_LABEL));
footerTopButton.setOnClickListener(clickListenerThirdButton);
break;
}
v.setClickable(true);
v.setOnClickListener(clickListenerDismiss);
footerBottomButton.setOnClickListener(clickListenerDismiss);
return v;
}