Program: 148017
Project: 148017
Buggy source:
private void backDeleteObjectsTreeView(IRepositoryViewObject[] theInput){
  for (  IRepositoryViewObject viewObj : RemoveFromRepositoryAction.getViewObjectsRemovedList()) {
    Item item=viewObj.getProperty().getItem();
    MDMServerObject serverObj=((MDMServerObjectItem)item).getMDMServerObject();
    TreeObject treeObj=Bean2EObjUtil.getInstance().wrapEObjWithTreeObject(serverObj);
switch (treeObj.getType()) {
case TreeObject.DATA_MODEL:
      theInput[1].getChildren().remove(viewObj);
    break;
case TreeObject.DATA_CLUSTER:
  theInput[0].getChildren().remove(viewObj);
break;
case TreeObject.MENU:
theInput[2].getChildren().remove(viewObj);
break;
case TreeObject.ROUTING_RULE:
theInput[6].getChildren().get(1).getChildren().remove(viewObj);
break;
case TreeObject.ROLE:
theInput[10].getChildren().remove(viewObj);
break;
case TreeObject.SERVICE_CONFIGURATION:
theInput[7].getChildren().remove(viewObj);
break;
case TreeObject.STORED_PROCEDURE:
theInput[3].getChildren().remove(viewObj);
break;
case TreeObject.TRANSFORMER:
theInput[6].getChildren().get(0).getChildren().remove(viewObj);
break;
case TreeObject.UNIVERSE:
theInput[12].getChildren().remove(viewObj);
break;
case TreeObject.VIEW:
theInput[4].getChildren().remove(viewObj);
break;
case TreeObject.SYNCHRONIZATIONPLAN:
theInput[11].getChildren().remove(viewObj);
break;
default :
;
}
}
}

Fixed version (ground truth):
private void backDeleteObjectsTreeView(IRepositoryViewObject[] theInput){
  for (  IRepositoryViewObject viewObj : RemoveFromRepositoryAction.getViewObjectsRemovedList()) {
    Item item=viewObj.getProperty().getItem();
    MDMServerObject serverObj=((MDMServerObjectItem)item).getMDMServerObject();
    TreeObject treeObj=Bean2EObjUtil.getInstance().wrapEObjWithTreeObject(serverObj);
    viewObj.getRepositoryObjectType();
switch (treeObj.getType()) {
case TreeObject.DATA_MODEL:
      getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_DATAMODEL).getChildren().remove(viewObj);
    break;
case TreeObject.DATA_CLUSTER:
  getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_DATACLUSTER).getChildren().remove(viewObj);
break;
case TreeObject.MENU:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_MENU).getChildren().remove(viewObj);
break;
case TreeObject.ROUTING_RULE:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_EVENTMANAGER).getChildren().get(1).getChildren().remove(viewObj);
break;
case TreeObject.ROLE:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_ROLE).getChildren().remove(viewObj);
break;
case TreeObject.SERVICE_CONFIGURATION:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_SERVICECONFIGURATION).getChildren().remove(viewObj);
break;
case TreeObject.STORED_PROCEDURE:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_STOREPROCEDURE).getChildren().remove(viewObj);
break;
case TreeObject.TRANSFORMER:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_EVENTMANAGER).getChildren().get(0).getChildren().remove(viewObj);
break;
case TreeObject.UNIVERSE:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_UNIVERSE).getChildren().remove(viewObj);
break;
case TreeObject.VIEW:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_VIEW).getChildren().remove(viewObj);
break;
case TreeObject.SYNCHRONIZATIONPLAN:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_SYNCHRONIZATIONPLAN).getChildren().remove(viewObj);
break;
default :
;
}
}
}