Program: 70644
Project: 70644
Buggy source:
protected void buildProperties(IContent content,LayoutContext context){
  IStyle style=content.getComputedStyle();
  boxStyle=new BoxStyle();
  Color color=PropertyUtil.getColor(style.getProperty(IStyle.STYLE_BACKGROUND_COLOR));
  if (color != null) {
    boxStyle.setBackgroundColor(color);
  }
  String url=style.getBackgroundImage();
  if (url != null && !"String_Node_Str".equals(url)) {
    boxStyle.setBackgroundImage(new BackgroundImageInfo(url,style.getProperty(IStyle.STYLE_BACKGROUND_REPEAT),getDimensionValue(style.getProperty(IStyle.STYLE_BACKGROUND_POSITION_X),width),getDimensionValue(style.getProperty(IStyle.STYLE_BACKGROUND_POSITION_Y),width)));
  }
  localProperties=new LocalProperties();
  int maw=parent.getMaxAvaWidth();
  CSSValue padding=style.getProperty(IStyle.STYLE_PADDING_TOP);
  if (padding == null) {
    localProperties.setPaddingTop(DEFAULT_PADDING);
  }
 else {
    localProperties.setPaddingTop(PropertyUtil.getDimensionValue(padding,width));
  }
  IStyle cs=content.getStyle();
  padding=cs.getProperty(IStyle.STYLE_PADDING_BOTTOM);
  if (padding == null) {
    localProperties.setPaddingBottom(DEFAULT_PADDING);
  }
 else {
    localProperties.setPaddingBottom(PropertyUtil.getDimensionValue(padding,width));
  }
  padding=cs.getProperty(IStyle.STYLE_PADDING_LEFT);
  if (padding == null) {
    localProperties.setPaddingLeft(DEFAULT_PADDING);
  }
 else {
    localProperties.setPaddingLeft(PropertyUtil.getDimensionValue(padding,width));
  }
  padding=cs.getProperty(IStyle.STYLE_PADDING_RIGHT);
  if (padding == null) {
    localProperties.setPaddingRight(DEFAULT_PADDING);
  }
 else {
    localProperties.setPaddingRight(PropertyUtil.getDimensionValue(padding,width));
  }
}

Fixed version (ground truth):
protected void buildProperties(IContent content,LayoutContext context){
  IStyle style=content.getComputedStyle();
  boxStyle=new BoxStyle();
  Color color=PropertyUtil.getColor(style.getProperty(IStyle.STYLE_BACKGROUND_COLOR));
  if (color != null) {
    boxStyle.setBackgroundColor(color);
  }
  String url=style.getBackgroundImage();
  if (url != null && !"String_Node_Str".equals(url)) {
    boxStyle.setBackgroundImage(new BackgroundImageInfo(url,style.getProperty(IStyle.STYLE_BACKGROUND_REPEAT),getDimensionValue(style.getProperty(IStyle.STYLE_BACKGROUND_POSITION_X),width),getDimensionValue(style.getProperty(IStyle.STYLE_BACKGROUND_POSITION_Y),width)));
  }
  localProperties=new LocalProperties();
  int maw=parent.getMaxAvaWidth();
  IStyle cs=content.getStyle();
  CSSValue padding=cs.getProperty(IStyle.STYLE_PADDING_TOP);
  if (padding == null) {
    localProperties.setPaddingTop(DEFAULT_PADDING);
  }
 else {
    localProperties.setPaddingTop(PropertyUtil.getDimensionValue(padding,width));
  }
  padding=cs.getProperty(IStyle.STYLE_PADDING_BOTTOM);
  if (padding == null) {
    localProperties.setPaddingBottom(DEFAULT_PADDING);
  }
 else {
    localProperties.setPaddingBottom(PropertyUtil.getDimensionValue(padding,width));
  }
  padding=cs.getProperty(IStyle.STYLE_PADDING_LEFT);
  if (padding == null) {
    localProperties.setPaddingLeft(DEFAULT_PADDING);
  }
 else {
    localProperties.setPaddingLeft(PropertyUtil.getDimensionValue(padding,width));
  }
  padding=cs.getProperty(IStyle.STYLE_PADDING_RIGHT);
  if (padding == null) {
    localProperties.setPaddingRight(DEFAULT_PADDING);
  }
 else {
    localProperties.setPaddingRight(PropertyUtil.getDimensionValue(padding,width));
  }
}