Program: 137737
Project: 137737
Buggy source:
protected static LabelProvider getLabelProvider(){
  if (fLabelProvider == null) {
    fLabelProvider=new LabelProvider(){
      @Override public String getText(      Object obj){
        if (obj == null) {
          return "String_Node_Str";
        }
        if (obj instanceof ImpactNode) {
          return ((ImpactNode)obj).toString();
        }
 else         if (obj instanceof IFile) {
          IFile file=(IFile)obj;
          ModelElement modelElement=ModelElementFileFactory.getModelElement(file);
          String name=modelElement != null ? PropertyHelper.getProperty(modelElement).getDisplayName() : file.getName();
          return name;
        }
 else         if (obj instanceof RepositoryViewObject) {
          return ((IRepositoryViewObject)obj).getLabel();
        }
        return PropertyHelper.getProperty((ModelElement)obj).getDisplayName();
      }
      @Override public Image getImage(      Object obj){
        ModelElement modelElement=null;
        if (obj instanceof ModelElement) {
          modelElement=(ModelElement)obj;
        }
 else         if (obj instanceof ImpactNode) {
          modelElement=((ImpactNode)obj).getNodeElement();
        }
 else         if (obj instanceof IFile) {
          modelElement=ModelElementFileFactory.getModelElement((IFile)obj);
        }
 else         if (obj instanceof RepositoryViewObject) {
          return ImageLib.getImage(ImageLib.XML_DOC);
        }
        if (modelElement == null) {
          if (((ImpactNode)obj).node != null) {
            return ImageLib.getImage(ImageLib.XML_DOC);
          }
          return super.getImage(obj);
        }
        if (modelElement instanceof Analysis) {
          return ImageLib.getImage(ImageLib.ANALYSIS_OBJECT);
        }
        if (modelElement instanceof TdReport) {
          return ImageLib.getImage(ImageLib.REPORT_OBJECT);
        }
        if (modelElement instanceof DatabaseConnection) {
          return ImageLib.getImage(ImageLib.CONNECTION);
        }
        if (modelElement instanceof MDMConnection) {
          return ImageLib.getImage(ImageLib.MDM_CONNECTION);
        }
        if (modelElement instanceof DelimitedFileConnection) {
          return ImageLib.getImage(ImageLib.FILE_DELIMITED);
        }
        if (modelElement instanceof Pattern) {
          return ImageLib.getImage(ImageLib.PATTERN_REG);
        }
        if (modelElement instanceof IndicatorDefinition) {
          return ImageLib.getImage(ImageLib.IND_DEFINITION);
        }
        if (modelElement instanceof DQRule) {
          return ImageLib.getImage(ImageLib.DQ_RULE);
        }
        return super.getImage(obj);
      }
    }
;
  }
  return fLabelProvider;
}

Fixed version (ground truth):
protected static LabelProvider getLabelProvider(){
  if (fLabelProvider == null) {
    fLabelProvider=new LabelProvider(){
      @Override public String getText(      Object obj){
        if (obj == null) {
          return "String_Node_Str";
        }
        if (obj instanceof ImpactNode) {
          return ((ImpactNode)obj).toString();
        }
 else         if (obj instanceof IFile) {
          IFile file=(IFile)obj;
          ModelElement modelElement=ModelElementFileFactory.getModelElement(file);
          String name=modelElement != null ? PropertyHelper.getProperty(modelElement).getDisplayName() : file.getName();
          return name;
        }
 else         if (obj instanceof RepositoryViewObject) {
          return ((IRepositoryViewObject)obj).getLabel();
        }
        return ((ModelElement)obj).getName();
      }
      @Override public Image getImage(      Object obj){
        ModelElement modelElement=null;
        if (obj instanceof ModelElement) {
          modelElement=(ModelElement)obj;
        }
 else         if (obj instanceof ImpactNode) {
          modelElement=((ImpactNode)obj).getNodeElement();
        }
 else         if (obj instanceof IFile) {
          modelElement=ModelElementFileFactory.getModelElement((IFile)obj);
        }
 else         if (obj instanceof RepositoryViewObject) {
          return ImageLib.getImage(ImageLib.XML_DOC);
        }
        if (modelElement == null) {
          if (((ImpactNode)obj).node != null) {
            return ImageLib.getImage(ImageLib.XML_DOC);
          }
          return super.getImage(obj);
        }
        if (modelElement instanceof Analysis) {
          return ImageLib.getImage(ImageLib.ANALYSIS_OBJECT);
        }
        if (modelElement instanceof TdReport) {
          return ImageLib.getImage(ImageLib.REPORT_OBJECT);
        }
        if (modelElement instanceof DatabaseConnection) {
          return ImageLib.getImage(ImageLib.CONNECTION);
        }
        if (modelElement instanceof MDMConnection) {
          return ImageLib.getImage(ImageLib.MDM_CONNECTION);
        }
        if (modelElement instanceof DelimitedFileConnection) {
          return ImageLib.getImage(ImageLib.FILE_DELIMITED);
        }
        if (modelElement instanceof Pattern) {
          return ImageLib.getImage(ImageLib.PATTERN_REG);
        }
        if (modelElement instanceof IndicatorDefinition) {
          return ImageLib.getImage(ImageLib.IND_DEFINITION);
        }
        if (modelElement instanceof DQRule) {
          return ImageLib.getImage(ImageLib.DQ_RULE);
        }
        return super.getImage(obj);
      }
    }
;
  }
  return fLabelProvider;
}