Program: 118465
Project: 118465
Buggy source:
/** 
 * DOC hwang JobletContainerFigure constructor comment.
 * @param model
 */
public JobletContainerFigure(final JobletContainer jobletContainer,IFigure parentMRFigure){
  setLayoutManager(new FreeformLayout());
  this.parentMRFigure=parentMRFigure;
  this.jobletContainer=jobletContainer;
  if (this.jobletContainer.getSubjobContainer() != null) {
    isSubjobDisplay=this.jobletContainer.getSubjobContainer().isDisplayed();
  }
  outlineFigure=new RoundedRectangle();
  rectFig=new GreenRectangle();
  rectFig.setAlpha(ALPHA_VALUE);
  titleFigure=new SimpleHtmlFigure();
  collapseFigure=new JobletCollapseFigure();
  collapseFigure.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent event){
      doCollapse();
    }
  }
);
  warningFigure=new ImageFigure();
  warningFigure.setImage(ImageProvider.getImage(EImage.WARNING_SMALL));
  warningFigure.setVisible(false);
  warningFigure.setSize(warningFigure.getPreferredSize());
  this.add(warningFigure);
  errorFigure=new ImageFigure();
  errorFigure.setImage(ImageProvider.getImage(EImage.ERROR_SMALL));
  errorFigure.setVisible(false);
  errorFigure.setSize(errorFigure.getPreferredSize());
  this.add(errorFigure);
  initMRFigures();
  htmlStatusHint=new SimpleHtmlFigure();
  initJobletContainerColor();
  updateData();
  initializejobletContainer(jobletContainer.getJobletContainerRectangle());
  if (jobletContainer.getNode().isMapReduceStart()) {
    refreshNodes(false);
    refreshMRstatus();
  }
}

Fixed version (ground truth):
/** 
 * DOC hwang JobletContainerFigure constructor comment.
 * @param model
 */
public JobletContainerFigure(final JobletContainer jobletContainer,IFigure parentMRFigure){
  setLayoutManager(new FreeformLayout());
  this.parentMRFigure=parentMRFigure;
  this.jobletContainer=jobletContainer;
  if (this.jobletContainer.getSubjobContainer() != null) {
    isSubjobDisplay=this.jobletContainer.getSubjobContainer().isDisplayed();
  }
  outlineFigure=new RoundedRectangle();
  rectFig=new GreenRectangle();
  rectFig.setAlpha(ALPHA_VALUE);
  titleFigure=new SimpleHtmlFigure();
  collapseFigure=new JobletCollapseFigure();
  collapseFigure.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent event){
      doCollapse();
    }
  }
);
  warningFigure=new ImageFigure();
  warningFigure.setImage(ImageProvider.getImage(EImage.WARNING_SMALL));
  warningFigure.setVisible(false);
  warningFigure.setSize(warningFigure.getPreferredSize());
  this.add(warningFigure);
  errorFigure=new ImageFigure();
  errorFigure.setImage(ImageProvider.getImage(EImage.ERROR_SMALL));
  errorFigure.setVisible(false);
  errorFigure.setSize(errorFigure.getPreferredSize());
  this.add(errorFigure);
  infoFigure=new ImageFigure();
  infoFigure.setImage(ImageProvider.getImage(EImage.INFORMATION_SMALL));
  infoFigure.setVisible(false);
  infoFigure.setSize(infoFigure.getPreferredSize());
  this.add(infoFigure);
  markFigure=new ImageFigure();
  markFigure.setImage(errorMarkImage);
  this.add(markFigure,null,0);
  initMRFigures();
  htmlStatusHint=new SimpleHtmlFigure();
  initJobletContainerColor();
  updateData();
  initializejobletContainer(jobletContainer.getJobletContainerRectangle());
  rectFig.setVisible(false);
  markFigure.setVisible(false);
  if (jobletContainer.getNode().isMapReduceStart()) {
    refreshNodes(false);
    refreshMRstatus();
  }
}