Program: 38039
Project: 38039
Buggy source:
@Override public AppLayout getAppLayout(){
  if (variant == null) {
    variant=Behaviour.LEFT_RESPONSIVE;
    notificationHolder=new DefaultNotificationHolder(newStatus -> {
    }
);
    badge=new DefaultBadgeHolder();
  }
  reloadNotifications();
  if (!variant.isTop()) {
    LeftNavigationComponent home=new LeftNavigationComponent("String_Node_Str",VaadinIcon.HOME.create(),View1.class);
    notificationHolder.bind(home.getBadge());
    return AppLayoutBuilder.get(variant).withTitle("String_Node_Str").withIcon("String_Node_Str").withAppBar(AppBarBuilder.get().add(new AppBarNotificationButton(VaadinIcon.BELL.create(),notificationHolder)).build()).withDesign(AppLayoutDesign.MATERIAL).withAppMenu(LeftAppMenuBuilder.get().addToSection(new MenuHeaderComponent("String_Node_Str","String_Node_Str","String_Node_Str"),HEADER).addToSection(new LeftClickableComponent("String_Node_Str",VaadinIcon.COG.create(),clickEvent -> openModeSelector(variant)),HEADER).add(home).add(LeftSubMenuBuilder.get("String_Node_Str",VaadinIcon.PLUS.create()).add(LeftSubMenuBuilder.get("String_Node_Str",VaadinIcon.PLUS.create()).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.SPLINE_CHART.create(),View2.class)).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.CONNECT.create(),View3.class)).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.COG.create(),View4.class)).build()).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.CONNECT.create(),View5.class)).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.COG.create(),View6.class)).build()).add(LeftSubMenuBuilder.get("String_Node_Str",VaadinIcon.PLUS.create()).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.CONNECT.create(),View7.class)).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.COG.create(),View8.class)).build()).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.MENU.create(),View9.class)).addToSection(new LeftClickableComponent("String_Node_Str",VaadinIcon.COG.create(),clickEvent -> openModeSelector(variant)),FOOTER).build()).build();
  }
 else {
    return AppLayoutBuilder.get(variant).withTitle("String_Node_Str").withAppBar(AppBarBuilder.get().add(new AppBarNotificationButton(VaadinIcon.BELL.create(),notificationHolder)).build()).withDesign(AppLayoutDesign.MATERIAL).withAppMenu(TopAppMenuBuilder.get().addToSection(new TopClickableComponent("String_Node_Str",VaadinIcon.COG.create(),clickEvent -> openModeSelector(variant)),HEADER).add(new TopNavigationComponent("String_Node_Str",VaadinIcon.HOME.create(),View1.class)).add(new TopNavigationComponent("String_Node_Str",VaadinIcon.SPLINE_CHART.create(),View2.class)).addToSection(new TopClickableComponent("String_Node_Str",VaadinIcon.COG.create(),clickEvent -> openModeSelector(variant)),FOOTER).addToSection(new TopNavigationComponent("String_Node_Str",VaadinIcon.CONNECT.create(),View3.class),FOOTER).build()).build();
  }
}

Fixed version (ground truth):
@Override public AppLayout getAppLayout(){
  if (variant == null) {
    variant=Behaviour.LEFT_RESPONSIVE;
    notificationHolder=new DefaultNotificationHolder(newStatus -> {
    }
);
    badgeHolder=new DefaultBadgeHolder();
  }
  reloadNotifications();
  if (!variant.isTop()) {
    LeftNavigationComponent home=new LeftNavigationComponent("String_Node_Str",VaadinIcon.HOME.create(),View1.class);
    LeftNavigationComponent menu=new LeftNavigationComponent("String_Node_Str",VaadinIcon.MENU.create(),View9.class);
    notificationHolder.bind(home.getBadge());
    badgeHolder.bind(menu.getBadge());
    return AppLayoutBuilder.get(variant).withTitle("String_Node_Str").withIcon("String_Node_Str").withAppBar(AppBarBuilder.get().add(new AppBarNotificationButton(VaadinIcon.BELL.create(),notificationHolder)).build()).withDesign(AppLayoutDesign.MATERIAL).withAppMenu(LeftAppMenuBuilder.get().addToSection(new MenuHeaderComponent("String_Node_Str","String_Node_Str","String_Node_Str"),HEADER).addToSection(new LeftClickableComponent("String_Node_Str",VaadinIcon.COG.create(),clickEvent -> openModeSelector(variant)),HEADER).add(home).add(LeftSubMenuBuilder.get("String_Node_Str",VaadinIcon.PLUS.create()).add(LeftSubMenuBuilder.get("String_Node_Str",VaadinIcon.PLUS.create()).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.SPLINE_CHART.create(),View2.class)).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.CONNECT.create(),View3.class)).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.COG.create(),View4.class)).build()).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.CONNECT.create(),View5.class)).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.COG.create(),View6.class)).build()).add(LeftSubMenuBuilder.get("String_Node_Str",VaadinIcon.PLUS.create()).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.CONNECT.create(),View7.class)).add(new LeftNavigationComponent("String_Node_Str",VaadinIcon.COG.create(),View8.class)).build()).add(menu).addToSection(new LeftClickableComponent("String_Node_Str",VaadinIcon.COG.create(),clickEvent -> openModeSelector(variant)),FOOTER).build()).build();
  }
 else {
    return AppLayoutBuilder.get(variant).withTitle("String_Node_Str").withAppBar(AppBarBuilder.get().add(new AppBarNotificationButton(VaadinIcon.BELL.create(),notificationHolder)).build()).withDesign(AppLayoutDesign.MATERIAL).withAppMenu(TopAppMenuBuilder.get().addToSection(new TopClickableComponent("String_Node_Str",VaadinIcon.COG.create(),clickEvent -> openModeSelector(variant)),HEADER).add(new TopNavigationComponent("String_Node_Str",VaadinIcon.HOME.create(),View1.class)).add(new TopNavigationComponent("String_Node_Str",VaadinIcon.SPLINE_CHART.create(),View2.class)).addToSection(new TopClickableComponent("String_Node_Str",VaadinIcon.COG.create(),clickEvent -> openModeSelector(variant)),FOOTER).addToSection(new TopNavigationComponent("String_Node_Str",VaadinIcon.CONNECT.create(),View3.class),FOOTER).build()).build();
  }
}