Program: 164984
Project: 164984
Buggy source:
/** 
 * Paint the passed color (non-resource value) on the object
 * @param cloneDrawable - whether we want to reuse a drawable globally, or clone it for the specific object
 * @param object - View, MenuItem's ActionView, ActionBar, or Drawable
 * @param paint
 */
public void paint(boolean cloneDrawable,Object object,int paint){
  if (object != null) {
    Drawable drawable=null;
    if (object instanceof Drawable) {
      drawable=(Drawable)object;
    }
 else     if (object instanceof View || object instanceof MenuItem) {
      View view=null;
      if (object instanceof MenuItem && Utils.isHoneyComb()) {
        view=((MenuItem)object).getActionView();
      }
 else       if (object instanceof View) {
        view=((View)object);
      }
      if (view != null) {
        drawable=view.getBackground();
        if (drawable == null || drawable instanceof ColorDrawable) {
          drawable=new ColorDrawable(paint);
          view.setBackgroundDrawable(drawable);
        }
 else         if (cloneDrawable) {
          drawable=drawable.getConstantState().newDrawable();
          view.setBackgroundDrawable(drawable);
        }
      }
    }
 else     if (object instanceof ActionBar) {
      drawable=new ColorDrawable(paint);
      ((ActionBar)object).setBackgroundDrawable(drawable);
    }
 else     if (Utils.isHoneyComb() && object instanceof android.app.ActionBar) {
      drawable=new ColorDrawable(paint);
      ((android.app.ActionBar)object).setBackgroundDrawable(drawable);
    }
 else {
      throw new RuntimeException("String_Node_Str" + object.getClass().getName());
    }
    if (drawable != null) {
      drawable.setColorFilter(paint,mMode);
    }
 else {
      throw new RuntimeException("String_Node_Str" + object.getClass().getName());
    }
  }
 else {
    throw new InvalidParameterException(getClass());
  }
}

Fixed version (ground truth):
/** 
 * Paint the passed color (non-resource value) on the object
 * @param cloneDrawable - whether we want to reuse a drawable globally, or clone it for the specific object
 * @param object - View, MenuItem's ActionView, ActionBar, or Drawable
 * @param paint
 */
public void paint(boolean cloneDrawable,Object object,int paint){
  if (object != null) {
    Drawable drawable=null;
    if (object instanceof Drawable) {
      drawable=PainterUtils.getDrawable(cloneDrawable,paint,((Drawable)object));
    }
 else     if (object instanceof View || object instanceof MenuItem) {
      View view=null;
      if (object instanceof MenuItem && Utils.isHoneyComb()) {
        view=((MenuItem)object).getActionView();
      }
 else       if (object instanceof View) {
        view=((View)object);
      }
      if (view != null) {
        drawable=PainterUtils.getDrawable(cloneDrawable,paint,view.getBackground());
        view.setBackgroundDrawable(drawable);
      }
    }
 else     if (object instanceof ActionBar) {
      drawable=new ColorDrawable(paint);
      ((ActionBar)object).setBackgroundDrawable(drawable);
    }
 else     if (Utils.isHoneyComb() && object instanceof android.app.ActionBar) {
      drawable=new ColorDrawable(paint);
      ((android.app.ActionBar)object).setBackgroundDrawable(drawable);
    }
 else {
      throw new RuntimeException("String_Node_Str" + object.getClass().getName());
    }
    if (drawable != null) {
      drawable.setColorFilter(paint,mMode);
    }
 else {
      throw new RuntimeException("String_Node_Str" + object.getClass().getName());
    }
  }
 else {
    throw new InvalidParameterException(getClass());
  }
}