Program: 46516
Project: 46516
Buggy source:
private void showLogoPopupMenu(final MouseEvent mouseEvent){
  cubePopupMenu=new JidePopupMenu();
  cubePopupMenu.add(new CubeLogoutAction());
  cubePopupMenu.addSeparator();
  cubePopupMenu.add(new CubeShutdownAction());
  JideMenu showMenu=new JideMenu(I18nBundleProvider.getBundle().getString("String_Node_Str"));
  showMenu.setIcon(IconManager.getInstance().getIcon("String_Node_Str"));
  TreeSet<VmHandle> hidden=new TreeSet<VmHandle>(new VmHandleHumanComparator(vmMon));
  for (  VmHandle h : client.listVms()) {
    if ("String_Node_Str".equalsIgnoreCase(vmMon.getVmProperty(h,"String_Node_Str"))) {
      hidden.add(h);
    }
  }
  if (hidden.size() == 0) {
    showMenu.setEnabled(false);
  }
 else {
    for (    VmHandle h : hidden) {
      final String label=String.format("String_Node_Str",vmMon.getVmName(h),vmMon.getVmDomain(h),vmMon.getVmClassification(h).name());
      showMenu.add(new VmHideAction(label,h,true,false));
    }
    showMenu.setEnabled(true);
  }
  List<CubeScreen> screens=cubeUI.getScreens();
  if (screens.size() > 1) {
    JideMenu screensMenu=new JideMenu(I18nBundleProvider.getBundle().getString("String_Node_Str"));
    cubePopupMenu.add(screensMenu);
    screensMenu.add(new CubeLayoutAction(cubeUI,Layout.A,I18nBundleProvider.getBundle().getString("String_Node_Str"),IconManager.getInstance().getIcon("String_Node_Str")));
    screensMenu.add(new CubeLayoutAction(cubeUI,Layout.B,I18nBundleProvider.getBundle().getString("String_Node_Str"),IconManager.getInstance().getIcon("String_Node_Str")));
    screensMenu.add(new CubeLayoutAction(cubeUI,Layout.AB,I18nBundleProvider.getBundle().getString("String_Node_Str"),IconManager.getInstance().getIcon("String_Node_Str")));
    screensMenu.add(new CubeLayoutAction(cubeUI,Layout.BA,I18nBundleProvider.getBundle().getString("String_Node_Str"),IconManager.getInstance().getIcon("String_Node_Str")));
  }
  cubePopupMenu.add(showMenu);
  vmPopupMenu.addSeparator();
  vmPopupMenu.add(new JideMenu("String_Node_Str"));
  JComponent comp=(JComponent)mouseEvent.getSource();
  cubePopupMenu.show(comp,comp.getX(),comp.getY() + comp.getHeight());
}

Fixed version (ground truth):
private void showLogoPopupMenu(final MouseEvent mouseEvent){
  cubePopupMenu=new JidePopupMenu();
  cubePopupMenu.add(new CubeLogoutAction());
  cubePopupMenu.addSeparator();
  cubePopupMenu.add(new CubeShutdownAction());
  JideMenu showMenu=new JideMenu(I18nBundleProvider.getBundle().getString("String_Node_Str"));
  showMenu.setIcon(IconManager.getInstance().getIcon("String_Node_Str"));
  TreeSet<VmHandle> hidden=new TreeSet<VmHandle>(new VmHandleHumanComparator(vmMon));
  for (  VmHandle h : client.listVms()) {
    if ("String_Node_Str".equalsIgnoreCase(vmMon.getVmProperty(h,"String_Node_Str"))) {
      hidden.add(h);
    }
  }
  if (hidden.size() == 0) {
    showMenu.setEnabled(false);
  }
 else {
    for (    VmHandle h : hidden) {
      final String label=String.format("String_Node_Str",vmMon.getVmName(h),vmMon.getVmDomain(h),vmMon.getVmClassification(h).name());
      showMenu.add(new VmHideAction(label,h,true,false));
    }
    showMenu.setEnabled(true);
  }
  List<CubeScreen> screens=cubeUI.getScreens();
  if (screens.size() > 1) {
    JideMenu screensMenu=new JideMenu(I18nBundleProvider.getBundle().getString("String_Node_Str"));
    cubePopupMenu.add(screensMenu);
    screensMenu.add(new CubeLayoutAction(cubeUI,Layout.A,I18nBundleProvider.getBundle().getString("String_Node_Str"),IconManager.getInstance().getIcon("String_Node_Str")));
    screensMenu.add(new CubeLayoutAction(cubeUI,Layout.B,I18nBundleProvider.getBundle().getString("String_Node_Str"),IconManager.getInstance().getIcon("String_Node_Str")));
    screensMenu.add(new CubeLayoutAction(cubeUI,Layout.AB,I18nBundleProvider.getBundle().getString("String_Node_Str"),IconManager.getInstance().getIcon("String_Node_Str")));
    screensMenu.add(new CubeLayoutAction(cubeUI,Layout.BA,I18nBundleProvider.getBundle().getString("String_Node_Str"),IconManager.getInstance().getIcon("String_Node_Str")));
  }
  cubePopupMenu.add(showMenu);
  cubePopupMenu.addSeparator();
  cubePopupMenu.add(new JideMenu("String_Node_Str"));
  JComponent comp=(JComponent)mouseEvent.getSource();
  cubePopupMenu.show(comp,comp.getX(),comp.getY() + comp.getHeight());
}