Program: 136707
Project: 136707
Buggy source:
protected ILabelProvider getLabelProvider(){
  if (labelProvider == null) {
    labelProvider=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);
          return modelElement != null ? PropertyHelper.getProperty(modelElement).getDisplayName() : file.getName();
        }
 else         if (obj instanceof RepositoryViewObject) {
          return ((IRepositoryViewObject)obj).getLabel();
        }
 else         if (obj instanceof MetadataTable) {
          return ((ModelElement)obj).getName();
        }
        Property property=PropertyHelper.getProperty((ModelElement)obj);
        return property == null ? ((ModelElement)obj).getName() : property.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.JRXML_ICON);
        }
        if (modelElement == null) {
          if (((ImpactNode)obj).getNode() != null) {
            return ImageLib.getImage(ImageLib.JRXML_ICON);
          }
          return super.getImage(obj);
        }
        Image modelElementImage=null;
        String imgName=null;
        if (modelElement instanceof Analysis) {
          imgName=ImageLib.ANALYSIS_OBJECT;
        }
 else         if (modelElement instanceof TdReport) {
          imgName=ImageLib.REPORT_OBJECT;
        }
 else         if (modelElement instanceof DatabaseConnection) {
          imgName=ImageLib.CONNECTION;
        }
 else         if (modelElement instanceof DelimitedFileConnection) {
          imgName=ImageLib.FILE_DELIMITED;
        }
 else         if (modelElement instanceof Pattern) {
          imgName=ImageLib.PATTERN_REG;
        }
 else         if (modelElement instanceof IndicatorDefinition) {
          if (modelElement instanceof DQRule) {
            imgName=ImageLib.DQ_RULE;
          }
 else           if (modelElement instanceof MatchRuleDefinition) {
            imgName=ImageLib.MATCH_RULE_ICON;
          }
 else {
            imgName=ImageLib.IND_DEFINITION;
          }
        }
 else         if (modelElement instanceof MetadataTable) {
          imgName=ImageLib.TABLE;
        }
        if (imgName != null) {
          modelElementImage=ImageLib.getImage(imgName);
        }
        if (modelElementImage != null) {
          if (modelElement != null) {
            Property property=PropertyHelper.getProperty(modelElement);
            if (property != null) {
              Item item=property.getItem();
              if (item != null) {
                if (ProxyRepositoryManager.getInstance().isLockByUserOwn(item)) {
                  modelElementImage=ImageLib.createLockedByOwnIcon(imgName).createImage();
                  imagesNeedDisposedList.add(modelElementImage);
                }
 else                 if (ProxyRepositoryManager.getInstance().isLockByOthers(item)) {
                  modelElementImage=ImageLib.createLockedByOtherIcon(imgName).createImage();
                  imagesNeedDisposedList.add(modelElementImage);
                }
              }
            }
          }
          return modelElementImage;
        }
        return super.getImage(obj);
      }
    }
;
  }
  return labelProvider;
}

Fixed version (ground truth):
protected ILabelProvider getLabelProvider(){
  if (labelProvider == null) {
    labelProvider=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);
          return modelElement != null ? PropertyHelper.getProperty(modelElement).getDisplayName() : file.getName();
        }
 else         if (obj instanceof RepositoryViewObject) {
          return ((IRepositoryViewObject)obj).getLabel();
        }
 else         if (obj instanceof MetadataTable) {
          return ((ModelElement)obj).getName();
        }
        Property property=PropertyHelper.getProperty((ModelElement)obj);
        return property == null ? ((ModelElement)obj).getName() : property.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.JRXML_ICON);
        }
        if (modelElement == null) {
          if (((ImpactNode)obj).getNode() != null) {
            return ImageLib.getImage(ImageLib.JRXML_ICON);
          }
          return super.getImage(obj);
        }
        Image modelElementImage=null;
        String imgName=null;
        if (modelElement instanceof Analysis) {
          imgName=ImageLib.ANALYSIS_OBJECT;
        }
 else         if (modelElement instanceof TdReport) {
          imgName=ImageLib.REPORT_OBJECT;
        }
 else         if (modelElement instanceof DatabaseConnection) {
          imgName=ImageLib.CONNECTION;
        }
 else         if (modelElement instanceof DelimitedFileConnection) {
          imgName=ImageLib.FILE_DELIMITED;
        }
 else         if (modelElement instanceof Pattern) {
          imgName=ImageLib.PATTERN_REG;
        }
 else         if (modelElement instanceof IndicatorDefinition) {
          if (modelElement instanceof DQRule) {
            imgName=ImageLib.DQ_RULE;
          }
 else           if (modelElement instanceof MatchRuleDefinition) {
            imgName=ImageLib.MATCH_RULE_ICON;
          }
 else {
            imgName=ImageLib.IND_DEFINITION;
          }
        }
 else         if (modelElement instanceof MetadataTable) {
          imgName=ImageLib.TABLE;
        }
        if (imgName != null) {
          modelElementImage=ImageLib.getImage(imgName);
        }
        if (modelElementImage != null) {
          if (modelElement != null) {
            Property property=PropertyHelper.getProperty(modelElement);
            if (property != null) {
              Item item=property.getItem();
              if (item != null) {
                if (ProxyRepositoryManager.getInstance().isLockByUserOwn(item)) {
                  modelElementImage=ImageLib.createLockedByOwnIcon(imgName);
                  imagesNeedDisposedList.add(modelElementImage);
                }
 else                 if (ProxyRepositoryManager.getInstance().isLockByOthers(item)) {
                  modelElementImage=ImageLib.createLockedByOtherIcon(imgName);
                  imagesNeedDisposedList.add(modelElementImage);
                }
              }
            }
          }
          return modelElementImage;
        }
        return super.getImage(obj);
      }
    }
;
  }
  return labelProvider;
}