Program: 170745
Project: 170745
Buggy source:
private void init(Context context,AttributeSet attributeSet){
  try {
    buttonSpacing=(int)DimensionUtils.convertDpToPixel(16,context);
    labelsMargin=getResources().getDimensionPixelSize(R.dimen.fab_labels_margin);
    labelsVerticalOffset=(int)DimensionUtils.convertDpToPixel(-1.5f,context);
    touchDelegateGroup=new TouchDelegateGroup(this);
    setTouchDelegate(touchDelegateGroup);
    TypedArray attr=context.obtainStyledAttributes(attributeSet,R.styleable.FABsMenu,0,0);
    menuMargins=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuMargins,0);
    menuTopMargin=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuTopMargin,menuMargins != 0 ? menuMargins : (int)DimensionUtils.convertDpToPixel(16,context));
    menuBottomMargin=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuBottomMargin,menuMargins != 0 ? menuMargins : (int)DimensionUtils.convertDpToPixel(16,context));
    menuRightMargin=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuRightMargin,menuMargins != 0 ? menuMargins : (int)DimensionUtils.convertDpToPixel(16,context));
    menuLeftMargin=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuLeftMargin,menuMargins != 0 ? menuMargins : (int)DimensionUtils.convertDpToPixel(16,context));
    menuButtonIcon=attr.getDrawable(R.styleable.FABsMenu_fab_moreButtonPlusIcon);
    menuButtonColor=attr.getColor(R.styleable.FABsMenu_fab_moreButtonBackgroundColor,getColor(android.R.color.holo_blue_dark));
    menuButtonRippleColor=attr.getColor(R.styleable.FABsMenu_fab_moreButtonRippleColor,getColor(android.R.color.holo_blue_light));
    menuButtonSize=attr.getInt(R.styleable.FABsMenu_fab_moreButtonSize,TitleFAB.SIZE_NORMAL);
    expandDirection=attr.getInt(R.styleable.FABsMenu_fab_expandDirection,EXPAND_UP);
    labelsPosition=attr.getInt(R.styleable.FABsMenu_fab_labelsPosition,LABELS_ON_LEFT_SIDE);
    attr.recycle();
    if (menuListener == null) {
      setMenuListener(new FABsMenuListener(){
      }
);
    }
    createAddButton(context);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
private void init(Context context,AttributeSet attributeSet){
  try {
    buttonSpacing=(int)DimensionUtils.convertDpToPixel(16,context);
    labelsMargin=getResources().getDimensionPixelSize(R.dimen.fab_labels_margin);
    labelsVerticalOffset=(int)DimensionUtils.convertDpToPixel(-1.5f,context);
    touchDelegateGroup=new TouchDelegateGroup(this);
    setTouchDelegate(touchDelegateGroup);
    TypedArray attr=context.obtainStyledAttributes(attributeSet,R.styleable.FABsMenu,0,0);
    menuMargins=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuMargins,0);
    menuTopMargin=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuTopMargin,menuMargins != 0 ? menuMargins : (int)DimensionUtils.convertDpToPixel(16,context));
    menuBottomMargin=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuBottomMargin,menuMargins != 0 ? menuMargins : (int)DimensionUtils.convertDpToPixel(16,context));
    menuRightMargin=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuRightMargin,menuMargins != 0 ? menuMargins : (int)DimensionUtils.convertDpToPixel(16,context));
    menuLeftMargin=attr.getDimensionPixelSize(R.styleable.FABsMenu_fab_menuLeftMargin,menuMargins != 0 ? menuMargins : (int)DimensionUtils.convertDpToPixel(16,context));
    menuButtonIcon=attr.getDrawable(R.styleable.FABsMenu_fab_moreButtonPlusIcon);
    menuButtonColor=attr.getColor(R.styleable.FABsMenu_fab_moreButtonBackgroundColor,getColor(android.R.color.holo_blue_dark));
    menuButtonRippleColor=attr.getColor(R.styleable.FABsMenu_fab_moreButtonRippleColor,getColor(android.R.color.holo_blue_light));
    menuButtonSize=attr.getInt(R.styleable.FABsMenu_fab_moreButtonSize,TitleFAB.SIZE_NORMAL);
    expandDirection=attr.getInt(R.styleable.FABsMenu_fab_expandDirection,EXPAND_UP);
    labelsPosition=attr.getInt(R.styleable.FABsMenu_fab_labelsPosition,isRtl() ? LABELS_ON_RIGHT_SIDE : LABELS_ON_LEFT_SIDE);
    attr.recycle();
    if (menuListener == null) {
      setMenuListener(new FABsMenuListener(){
      }
);
    }
    createAddButton(context);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}