Program: 127951
Project: 127951
Buggy source:
/** 
 * DOC Comment method "refreshAll".
 */
private static void refreshAll(){
  diViewList.clear();
  dqViewList.clear();
  mdmViewList.clear();
  setPerspectiveReviewUtil();
  IWorkbenchWindow workBenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (workBenchWindow != null) {
    IWorkbenchPage page=workBenchWindow.getActivePage();
    if (page != null) {
      String perId=page.getPerspective().getId();
      if ((!"String_Node_Str".equals(perId) && null != perId)) {
        if (perId.equalsIgnoreCase(IBrandingConfiguration.PERSPECTIVE_DI_ID)) {
          for (          String strId : dqViewList) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
          for (          String strId : mdmViewList) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
        }
 else         if (perId.equalsIgnoreCase(IBrandingConfiguration.PERSPECTIVE_DQ_ID)) {
          for (          String strId : diViewList) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
          for (          String strId : mdmViewList) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
        }
 else         if (perId.equalsIgnoreCase(IBrandingConfiguration.PERSPECTIVE_MDM_ID)) {
          for (          String strId : diViewList) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
          for (          String strId : dqViewList) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC Comment method "refreshAll".
 */
private static void refreshAll(){
  diViewList.clear();
  dqViewList.clear();
  mdmViewList.clear();
  setPerspectiveReviewUtil();
  IWorkbenchWindow workBenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (workBenchWindow != null) {
    IWorkbenchPage page=workBenchWindow.getActivePage();
    if (page != null) {
      String perId=page.getPerspective().getId();
      if ((!"String_Node_Str".equals(perId) && null != perId)) {
        if (perId.equalsIgnoreCase(IBrandingConfiguration.PERSPECTIVE_DI_ID)) {
          for (          String strId : dqViewList.toArray(new String[0])) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
          for (          String strId : mdmViewList.toArray(new String[0])) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
        }
 else         if (perId.equalsIgnoreCase(IBrandingConfiguration.PERSPECTIVE_DQ_ID)) {
          for (          String strId : diViewList.toArray(new String[0])) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
          for (          String strId : mdmViewList.toArray(new String[0])) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
        }
 else         if (perId.equalsIgnoreCase(IBrandingConfiguration.PERSPECTIVE_MDM_ID)) {
          for (          String strId : diViewList.toArray(new String[0])) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
          for (          String strId : dqViewList.toArray(new String[0])) {
            IViewPart viewPart=page.findView(strId);
            if (viewPart != null) {
              page.hideView(viewPart);
            }
          }
        }
      }
    }
  }
}