Program: 167482
Project: 167482
Buggy source:
protected HorizontalLayout buildMenuBar(){
  HorizontalLayout layout=new HorizontalLayout();
  layout.setWidth(100,Unit.PERCENTAGE);
  MenuBar leftMenuBar=new MenuBar();
  leftMenuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS);
  leftMenuBar.setWidth(100,Unit.PERCENTAGE);
  newMenu=leftMenuBar.addItem("String_Node_Str",null);
  editMenu=leftMenuBar.addItem("String_Node_Str",null);
  editMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      open(treeTable.getValue());
    }
  }
);
  editMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      startEditingItem((AbstractObject)treeTable.getValue());
    }
  }
);
  delete=editMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      handleDelete();
    }
  }
);
  MenuItem projectMenu=leftMenuBar.addItem("String_Node_Str",null);
  projectMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      viewProjects();
    }
  }
);
  exportProject=projectMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      exportProject();
    }
  }
);
  closeProject=projectMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      closeProject();
    }
  }
);
  blank=newMenu.addItem("String_Node_Str",null);
  newFlow=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewFlow();
    }
  }
);
  newModel=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewModel();
    }
  }
);
  newComponent=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
    }
  }
);
  newDataSource=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewDatabase();
    }
  }
);
  newFileResource=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewLocalFileSystem();
    }
  }
);
  newSSHResource=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewSSHFileSystem();
    }
  }
);
  MenuBar rightMenuBar=new MenuBar();
  rightMenuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS);
  search=rightMenuBar.addItem("String_Node_Str",Icons.SEARCH,new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      search.setChecked(!search.isChecked());
      searchBarLayout.setVisible(search.isChecked());
    }
  }
);
  layout.addComponent(leftMenuBar);
  layout.addComponent(rightMenuBar);
  layout.setExpandRatio(leftMenuBar,1);
  return layout;
}

Fixed version (ground truth):
protected HorizontalLayout buildMenuBar(){
  HorizontalLayout layout=new HorizontalLayout();
  layout.setWidth(100,Unit.PERCENTAGE);
  MenuBar leftMenuBar=new MenuBar();
  leftMenuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS);
  leftMenuBar.setWidth(100,Unit.PERCENTAGE);
  newMenu=leftMenuBar.addItem("String_Node_Str",null);
  editMenu=leftMenuBar.addItem("String_Node_Str",null);
  editMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      open(treeTable.getValue());
    }
  }
);
  editMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      startEditingItem((AbstractObject)treeTable.getValue());
    }
  }
);
  delete=editMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      handleDelete();
    }
  }
);
  MenuItem projectMenu=leftMenuBar.addItem("String_Node_Str",null);
  projectMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      viewProjects();
    }
  }
);
  exportProject=projectMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      exportProject();
    }
  }
);
  closeProject=projectMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      closeProject();
    }
  }
);
  blank=newMenu.addItem("String_Node_Str",null);
  newFlow=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewFlow();
    }
  }
);
  newModel=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewModel();
    }
  }
);
  newComponent=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
    }
  }
);
  newDataSource=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewDatabase();
    }
  }
);
  newFileResource=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewLocalFileSystem();
    }
  }
);
  newSSHResource=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewSSHFileSystem();
    }
  }
);
  newWebResource=newMenu.addItem("String_Node_Str",new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      addNewHttpResource();
    }
  }
);
  MenuBar rightMenuBar=new MenuBar();
  rightMenuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS);
  search=rightMenuBar.addItem("String_Node_Str",Icons.SEARCH,new Command(){
    @Override public void menuSelected(    MenuItem selectedItem){
      search.setChecked(!search.isChecked());
      searchBarLayout.setVisible(search.isChecked());
    }
  }
);
  layout.addComponent(leftMenuBar);
  layout.addComponent(rightMenuBar);
  layout.setExpandRatio(leftMenuBar,1);
  return layout;
}