Program: 175947
Project: 175947
Buggy source:
/** 
 * The contructor used with an inflater
 * @param context
 * @param attrs
 */
public TitleFlowIndicator(Context context,AttributeSet attrs){
  super(context,attrs);
  int typefaceIndex=attrs.getAttributeIntValue("String_Node_Str","String_Node_Str",0);
  int textStyleIndex=attrs.getAttributeIntValue("String_Node_Str","String_Node_Str",0);
  TypedArray a=context.obtainStyledAttributes(attrs,R.styleable.TitleFlowIndicator);
  String customTypeface=a.getString(R.styleable.TitleFlowIndicator_customTypeface);
  int footerColor=a.getColor(R.styleable.TitleFlowIndicator_footerColor,FOOTER_COLOR);
  footerLineHeight=a.getDimension(R.styleable.TitleFlowIndicator_footerLineHeight,FOOTER_LINE_HEIGHT);
  footerTriangleHeight=a.getDimension(R.styleable.TitleFlowIndicator_footerTriangleHeight,FOOTER_TRIANGLE_HEIGHT);
  int selectedColor=a.getColor(R.styleable.TitleFlowIndicator_selectedColor,SELECTED_COLOR);
  boolean selectedBold=a.getBoolean(R.styleable.TitleFlowIndicator_selectedColor,SELECTED_BOLD);
  int textColor=a.getColor(R.styleable.TitleFlowIndicator_textColor,TEXT_COLOR);
  float textSize=a.getDimension(R.styleable.TitleFlowIndicator_textSize,TEXT_SIZE);
  float selectedSize=a.getDimension(R.styleable.TitleFlowIndicator_selectedSize,textSize);
  titlePadding=a.getDimension(R.styleable.TitleFlowIndicator_titlePadding,TITLE_PADDING);
  clipPadding=a.getDimension(R.styleable.TitleFlowIndicator_clipPadding,CLIP_PADDING);
  initDraw(textColor,textSize,selectedColor,selectedBold,selectedSize,footerLineHeight,footerColor);
  if (customTypeface != null)   typeface=Typeface.createFromAsset(context.getAssets(),customTypeface);
 else   typeface=getTypefaceByIndex(typefaceIndex);
  typeface=Typeface.create(typeface,textStyleIndex);
}

Fixed version (ground truth):
/** 
 * The contructor used with an inflater
 * @param context
 * @param attrs
 */
public TitleFlowIndicator(Context context,AttributeSet attrs){
  super(context,attrs);
  int typefaceIndex=attrs.getAttributeIntValue("String_Node_Str","String_Node_Str",0);
  int textStyleIndex=attrs.getAttributeIntValue("String_Node_Str","String_Node_Str",0);
  TypedArray a=context.obtainStyledAttributes(attrs,R.styleable.TitleFlowIndicator);
  String customTypeface=a.getString(R.styleable.TitleFlowIndicator_customTypeface);
  int footerColor=a.getColor(R.styleable.TitleFlowIndicator_footerColor,FOOTER_COLOR);
  footerLineHeight=a.getDimension(R.styleable.TitleFlowIndicator_footerLineHeight,FOOTER_LINE_HEIGHT);
  footerTriangleHeight=a.getDimension(R.styleable.TitleFlowIndicator_footerTriangleHeight,FOOTER_TRIANGLE_HEIGHT);
  int selectedColor=a.getColor(R.styleable.TitleFlowIndicator_selectedColor,SELECTED_COLOR);
  boolean selectedBold=a.getBoolean(R.styleable.TitleFlowIndicator_selectedBold,SELECTED_BOLD);
  int textColor=a.getColor(R.styleable.TitleFlowIndicator_textColor,TEXT_COLOR);
  float textSize=a.getDimension(R.styleable.TitleFlowIndicator_textSize,TEXT_SIZE);
  float selectedSize=a.getDimension(R.styleable.TitleFlowIndicator_selectedSize,textSize);
  titlePadding=a.getDimension(R.styleable.TitleFlowIndicator_titlePadding,TITLE_PADDING);
  clipPadding=a.getDimension(R.styleable.TitleFlowIndicator_clipPadding,CLIP_PADDING);
  initDraw(textColor,textSize,selectedColor,selectedBold,selectedSize,footerLineHeight,footerColor);
  if (customTypeface != null)   typeface=Typeface.createFromAsset(context.getAssets(),customTypeface);
 else   typeface=getTypefaceByIndex(typefaceIndex);
  typeface=Typeface.create(typeface,textStyleIndex);
}