Program: 148018
Project: 148018
Buggy source:
private void restoreDeleteObjectsTreeView(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().add(viewObj);
    break;
case TreeObject.DATA_CLUSTER:
  theInput[0].getChildren().add(viewObj);
break;
case TreeObject.MENU:
theInput[2].getChildren().add(viewObj);
break;
case TreeObject.ROUTING_RULE:
theInput[6].getChildren().get(1).getChildren().add(viewObj);
break;
case TreeObject.ROLE:
theInput[10].getChildren().add(viewObj);
break;
case TreeObject.SERVICE_CONFIGURATION:
theInput[7].getChildren().add(viewObj);
break;
case TreeObject.STORED_PROCEDURE:
theInput[3].getChildren().add(viewObj);
break;
case TreeObject.TRANSFORMER:
theInput[6].getChildren().get(0).getChildren().add(viewObj);
break;
case TreeObject.UNIVERSE:
theInput[12].getChildren().add(viewObj);
break;
case TreeObject.VIEW:
theInput[4].getChildren().add(viewObj);
break;
case TreeObject.SYNCHRONIZATIONPLAN:
theInput[11].getChildren().add(viewObj);
break;
default :
;
}
}
}

Fixed version (ground truth):
private void restoreDeleteObjectsTreeView(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().add(viewObj);
    break;
case TreeObject.DATA_CLUSTER:
  getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_DATACLUSTER).getChildren().add(viewObj);
break;
case TreeObject.MENU:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_MENU).getChildren().add(viewObj);
break;
case TreeObject.ROUTING_RULE:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_EVENTMANAGER).getChildren().get(1).getChildren().add(viewObj);
break;
case TreeObject.ROLE:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_ROLE).getChildren().add(viewObj);
break;
case TreeObject.SERVICE_CONFIGURATION:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_SERVICECONFIGURATION).getChildren().add(viewObj);
break;
case TreeObject.STORED_PROCEDURE:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_STOREPROCEDURE).getChildren().add(viewObj);
break;
case TreeObject.TRANSFORMER:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_EVENTMANAGER).getChildren().get(0).getChildren().add(viewObj);
break;
case TreeObject.UNIVERSE:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_UNIVERSE).getChildren().add(viewObj);
break;
case TreeObject.VIEW:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_VIEW).getChildren().add(viewObj);
break;
case TreeObject.SYNCHRONIZATIONPLAN:
getViewObjectByType(theInput,IServerObjectRepositoryType.TYPE_SYNCHRONIZATIONPLAN).getChildren().add(viewObj);
break;
default :
;
}
}
}