Program: 136666
Project: 136666
Buggy source:
@Override public Image getImage(Object element){
  Image image=null;
  if (element instanceof ItemRecord) {
    ItemRecord record=(ItemRecord)element;
    File file=record.getFile();
    String fileName=file.getName();
    if (file.isDirectory()) {
      image=ImageLib.getImage(ImageLib.FOLDERNODE_IMAGE);
      EResourceConstant constant=resolveResourceConstant(fileName);
      if (constant != null) {
switch (constant) {
case DATA_PROFILING:
          image=ImageLib.getImage(ImageLib.DATA_PROFILING);
        break;
case METADATA:
      image=ImageLib.getImage(ImageLib.METADATA);
    break;
case LIBRARIES:
  image=ImageLib.getImage(ImageLib.LIBRARIES);
break;
case ANALYSIS:
break;
case REPORTS:
break;
case EXCHANGE:
image=ImageLib.getImage(ImageLib.EXCHANGE);
break;
case DB_CONNECTIONS:
image=ImageLib.getImage(ImageLib.CONNECTION);
break;
case FILEDELIMITED:
image=ImageLib.getImage(ImageLib.FILE_DELIMITED);
break;
case HADOOP_CLUSTER:
image=ImageLib.getImage(ImageLib.HADOOP_CLUSTER);
break;
default :
break;
}
}
}
 else {
if (fileName.endsWith(FactoriesUtil.ANA)) {
image=ImageLib.getImage(ImageLib.ANALYSIS_OBJECT);
}
 else if (fileName.endsWith(FactoriesUtil.REP)) {
image=ImageLib.getImage(ImageLib.REPORT_OBJECT);
}
 else if (fileName.endsWith(FactoriesUtil.PATTERN)) {
image=ImageLib.getImage(ImageLib.PATTERN_REG);
}
 else if (fileName.endsWith(FactoriesUtil.DQRULE)) {
if (record.getElement() instanceof MatchRuleDefinition) {
image=ImageLib.getImage(ImageLib.MATCH_RULE_ICON);
}
 else {
image=ImageLib.getImage(ImageLib.DQ_RULE);
}
}
 else if (fileName.endsWith(FactoriesUtil.ITEM_EXTENSION)) {
if (file.getParentFile().getName().equals(EResourceConstant.FILEDELIMITED.getName())) {
image=ImageLib.getImage(ImageLib.FILE_DELIMITED);
}
 else {
image=ImageLib.getImage(ImageLib.TD_DATAPROVIDER);
}
}
 else if (fileName.endsWith(FactoriesUtil.DEFINITION)) {
image=ImageLib.getImage(ImageLib.IND_DEFINITION);
}
 else if (fileName.endsWith(FactoriesUtil.SQL)) {
image=ImageLib.getImage(ImageLib.SOURCE_FILE);
}
 else if (fileName.endsWith(FactoriesUtil.JAR)) {
image=ImageLib.getImage(ImageLib.JAR_FILE);
}
 else if (fileName.endsWith(FactoriesUtil.JRXML)) {
image=ImageLib.getImage(ImageLib.JRXML_ICON);
}
}
}
return image != null ? image : super.getImage(element);
}

Fixed version (ground truth):
@Override public Image getImage(Object element){
  Image image=null;
  if (element instanceof ItemRecord) {
    ItemRecord record=(ItemRecord)element;
    File file=record.getFile();
    String fileName=file.getName();
    if (file.isDirectory()) {
      image=ImageLib.getImage(ImageLib.FOLDERNODE_IMAGE);
      EResourceConstant constant=resolveResourceConstant(fileName);
      if (constant != null) {
switch (constant) {
case DATA_PROFILING:
          image=ImageLib.getImage(ImageLib.DATA_PROFILING);
        break;
case METADATA:
      image=ImageLib.getImage(ImageLib.METADATA);
    break;
case LIBRARIES:
  image=ImageLib.getImage(ImageLib.LIBRARIES);
break;
case ANALYSIS:
break;
case REPORTS:
break;
case EXCHANGE:
image=ImageLib.getImage(ImageLib.EXCHANGE);
break;
case DB_CONNECTIONS:
image=ImageLib.getImage(ImageLib.CONNECTION);
break;
case FILEDELIMITED:
image=ImageLib.getImage(ImageLib.FILE_DELIMITED);
break;
case HADOOP_CLUSTER:
image=ImageLib.getImage(ImageLib.HADOOP_CLUSTER);
break;
default :
break;
}
}
}
 else {
if (fileName.endsWith(FactoriesUtil.ANA)) {
image=ImageLib.getImage(ImageLib.ANALYSIS_OBJECT);
}
 else if (fileName.endsWith(FactoriesUtil.REP)) {
image=ImageLib.getImage(ImageLib.REPORT_OBJECT);
}
 else if (fileName.endsWith(FactoriesUtil.PATTERN)) {
image=ImageLib.getImage(ImageLib.PATTERN_REG);
}
 else if (fileName.endsWith(FactoriesUtil.DQRULE)) {
if (record.getElement() instanceof MatchRuleDefinition) {
image=ImageLib.getImage(ImageLib.MATCH_RULE_ICON);
}
 else {
image=ImageLib.getImage(ImageLib.DQ_RULE);
}
}
 else if (fileName.endsWith(FactoriesUtil.ITEM_EXTENSION)) {
if (record.getElement() instanceof DelimitedFileConnection) {
image=ImageLib.getImage(ImageLib.FILE_DELIMITED);
}
 else {
image=ImageLib.getImage(ImageLib.TD_DATAPROVIDER);
}
}
 else if (fileName.endsWith(FactoriesUtil.DEFINITION)) {
image=ImageLib.getImage(ImageLib.IND_DEFINITION);
}
 else if (fileName.endsWith(FactoriesUtil.SQL)) {
image=ImageLib.getImage(ImageLib.SOURCE_FILE);
}
 else if (fileName.endsWith(FactoriesUtil.JAR)) {
image=ImageLib.getImage(ImageLib.JAR_FILE);
}
 else if (fileName.endsWith(FactoriesUtil.JRXML)) {
image=ImageLib.getImage(ImageLib.JRXML_ICON);
}
}
}
return image != null ? image : super.getImage(element);
}