Program: 62416
Project: 62416
Buggy source:
@Override public void initialize(URL url,ResourceBundle rb){
  tooltipTimeFixService.fix();
  AwesomeDude.setIcon(htmlPro,AwesomeIcon.HTML5);
  AwesomeDude.setIcon(pdfPro,AwesomeIcon.FILE_PDF_ALT);
  AwesomeDude.setIcon(ebookPro,AwesomeIcon.BOOK);
  AwesomeDude.setIcon(docbookPro,AwesomeIcon.CODE);
  AwesomeDude.setIcon(browserPro,AwesomeIcon.FLASH);
  AwesomeDude.setIcon(workingDirButton,AwesomeIcon.FOLDER_ALT,"String_Node_Str");
  AwesomeDude.setIcon(splitHideButton,AwesomeIcon.CHEVRON_LEFT,"String_Node_Str");
  AwesomeDude.setIcon(refreshLabel,AwesomeIcon.REFRESH,"String_Node_Str");
  AwesomeDude.setIcon(goUpLabel,AwesomeIcon.LEVEL_UP,"String_Node_Str");
  AwesomeDude.setIcon(goHomeLabel,AwesomeIcon.HOME,"String_Node_Str");
  leftButton.setGraphic(AwesomeDude.createIconLabel(AwesomeIcon.ELLIPSIS_H,"String_Node_Str"));
  ContextMenu htmlProMenu=new ContextMenu();
  htmlProMenu.getStyleClass().add("String_Node_Str");
  htmlPro.setContextMenu(htmlProMenu);
  htmlPro.setOnMouseClicked(event -> {
    htmlProMenu.show(htmlPro,event.getScreenX(),50);
  }
);
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.generateHtml();
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.generateHtml(true);
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").tip("String_Node_Str").onclick(event -> {
    this.cutCopy(lastRendered.getValue());
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").tip("String_Node_Str").onclick(event -> {
    previewEngine.executeScript("String_Node_Str");
  }
));
  ContextMenu pdfProMenu=new ContextMenu();
  pdfProMenu.getStyleClass().add("String_Node_Str");
  pdfProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.generatePdf();
  }
));
  pdfProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.generatePdf(true);
  }
));
  pdfPro.setContextMenu(pdfProMenu);
  pdfPro.setOnMouseClicked(event -> {
    pdfProMenu.show(pdfPro,event.getScreenX(),50);
  }
);
  ContextMenu docbookProMenu=new ContextMenu();
  docbookProMenu.getStyleClass().add("String_Node_Str");
  docbookProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertDocbook();
  }
));
  docbookProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertDocbook(true);
  }
));
  docbookPro.setContextMenu(docbookProMenu);
  docbookPro.setOnMouseClicked(event -> {
    docbookProMenu.show(docbookPro,event.getScreenX(),50);
  }
);
  ContextMenu ebookProMenu=new ContextMenu();
  ebookProMenu.getStyleClass().add("String_Node_Str");
  ebookProMenu.getItems().add(MenuBuilt.name("String_Node_Str").add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertMobi();
  }
)).add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertMobi(true);
  }
)).build());
  ebookProMenu.getItems().add(MenuBuilt.name("String_Node_Str").add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertEpub();
  }
)).add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertEpub(true);
  }
)).build());
  ebookPro.setOnMouseClicked(event -> {
    ebookProMenu.show(ebookPro,event.getScreenX(),50);
  }
);
  ebookPro.setContextMenu(ebookProMenu);
  browserPro.setOnMouseClicked(event -> {
    if (event.getButton() == MouseButton.PRIMARY)     this.externalBrowse();
  }
);
  port=server.getEmbeddedServletContainer().getPort();
  loadConfigurations();
  loadRecentFileList();
  loadShortCuts();
  recentListView.setItems(recentFiles);
  recentFiles.addListener((ListChangeListener<String>)c -> {
    recentListView.visibleProperty().setValue(c.getList().size() > 0);
    recentListView.getSelectionModel().selectFirst();
  }
);
  recentListView.setOnMouseClicked(event -> {
    if (event.getClickCount() > 1) {
      openRecentListFile(event);
    }
  }
);
  treeView.setCellFactory(param -> {
    TreeCell<Item> cell=new TextFieldTreeCell<Item>();
    cell.setOnDragDetected(event -> {
      Dragboard db=cell.startDragAndDrop(TransferMode.ANY);
      ClipboardContent content=new ClipboardContent();
      content.putFiles(Arrays.asList(cell.getTreeItem().getValue().getPath().toFile()));
      db.setContent(content);
    }
);
    return cell;
  }
);
  lastRendered.addListener(lastRenderedChangeListener);
  mathjaxView=new WebView();
  mathjaxView.setVisible(false);
  rootAnchor.getChildren().add(mathjaxView);
  WebEngine mathjaxEngine=mathjaxView.getEngine();
  mathjaxEngine.getLoadWorker().stateProperty().addListener((observableValue1,state,state2) -> {
    JSObject window=(JSObject)mathjaxEngine.executeScript("String_Node_Str");
    if (window.getMember("String_Node_Str").equals("String_Node_Str"))     window.setMember("String_Node_Str",this);
  }
);
  mathjaxEngine.load(String.format("String_Node_Str",port));
  previewEngine=previewView.getEngine();
  previewEngine.load(String.format("String_Node_Str",port));
  previewEngine.getLoadWorker().stateProperty().addListener((observableValue1,state,state2) -> {
    if (state2 == Worker.State.SUCCEEDED) {
      JSObject window=(JSObject)previewEngine.executeScript("String_Node_Str");
      if (window.getMember("String_Node_Str").equals("String_Node_Str")) {
        window.setMember("String_Node_Str",this);
      }
    }
  }
);
  previewEngine.getLoadWorker().exceptionProperty().addListener((ov,t,t1) -> {
    logger.info(t1.getMessage(),t1);
  }
);
  if (Objects.nonNull(config.getWorkingDirectory())) {
    Optional<Path> optional=Optional.ofNullable(Paths.get(config.getWorkingDirectory()));
    directoryService.setWorkingDirectory(optional);
  }
  Path workDir=directoryService.getWorkingDirectory().orElse(userHome);
  fileBrowser.browse(treeView,workDir);
  tabPane.getTabs().addListener((ListChangeListener<Tab>)c -> {
    if (tabPane.getTabs().isEmpty())     threadService.runActionLater(this::newDoc);
  }
);
  openFileTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    directoryService.getOpenFileConsumer().accept(path);
  }
);
  openFolderTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    path=Files.isDirectory(path) ? path : path.getParent();
    if (Objects.nonNull(path))     getHostServices().showDocument(path.toUri().toASCIIString());
  }
);
  openFolderListItem.setOnAction(event -> {
    Path path=Paths.get(recentListView.getSelectionModel().getSelectedItem());
    path=Files.isDirectory(path) ? path : path.getParent();
    if (Objects.nonNull(path))     getHostServices().showDocument(path.toUri().toASCIIString());
  }
);
  openFileListItem.setOnAction(this::openRecentListFile);
  copyPathTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    this.cutCopy(path.toString());
  }
);
  copyPathListItem.setOnAction(event -> {
    this.cutCopy(recentListView.getSelectionModel().getSelectedItem());
  }
);
  copyTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    this.copyFile(path);
  }
);
  copyListItem.setOnAction(event -> {
    Path path=Paths.get(recentListView.getSelectionModel().getSelectedItem());
    this.copyFile(path);
  }
);
  treeView.setOnMouseClicked(event -> {
    TreeItem<Item> selectedItem=treeView.getSelectionModel().getSelectedItem();
    if (Objects.isNull(selectedItem))     return;
    Path selectedPath=selectedItem.getValue().getPath();
    if (event.getButton() == MouseButton.PRIMARY)     if (event.getClickCount() == 2)     directoryService.getOpenFileConsumer().accept(selectedPath);
  }
);
  threadService.runActionLater(e -> {
    if (tabPane.getTabs().isEmpty()) {
      newDoc(e);
    }
  }
);
}

Fixed version (ground truth):
@Override public void initialize(URL url,ResourceBundle rb){
  tooltipTimeFixService.fix();
  AwesomeDude.setIcon(htmlPro,AwesomeIcon.HTML5);
  AwesomeDude.setIcon(pdfPro,AwesomeIcon.FILE_PDF_ALT);
  AwesomeDude.setIcon(ebookPro,AwesomeIcon.BOOK);
  AwesomeDude.setIcon(docbookPro,AwesomeIcon.CODE);
  AwesomeDude.setIcon(browserPro,AwesomeIcon.FLASH);
  AwesomeDude.setIcon(workingDirButton,AwesomeIcon.FOLDER_ALT,"String_Node_Str");
  AwesomeDude.setIcon(splitHideButton,AwesomeIcon.CHEVRON_LEFT,"String_Node_Str");
  AwesomeDude.setIcon(refreshLabel,AwesomeIcon.REFRESH,"String_Node_Str");
  AwesomeDude.setIcon(goUpLabel,AwesomeIcon.LEVEL_UP,"String_Node_Str");
  AwesomeDude.setIcon(goHomeLabel,AwesomeIcon.HOME,"String_Node_Str");
  leftButton.setGraphic(AwesomeDude.createIconLabel(AwesomeIcon.ELLIPSIS_H,"String_Node_Str"));
  ContextMenu htmlProMenu=new ContextMenu();
  htmlProMenu.getStyleClass().add("String_Node_Str");
  htmlPro.setContextMenu(htmlProMenu);
  htmlPro.setOnMouseClicked(event -> {
    htmlProMenu.show(htmlPro,event.getScreenX(),50);
  }
);
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.generateHtml();
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.generateHtml(true);
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").tip("String_Node_Str").onclick(event -> {
    this.cutCopy(lastRendered.getValue());
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").tip("String_Node_Str").onclick(event -> {
    previewEngine.executeScript("String_Node_Str");
  }
));
  ContextMenu pdfProMenu=new ContextMenu();
  pdfProMenu.getStyleClass().add("String_Node_Str");
  pdfProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.generatePdf();
  }
));
  pdfProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.generatePdf(true);
  }
));
  pdfPro.setContextMenu(pdfProMenu);
  pdfPro.setOnMouseClicked(event -> {
    pdfProMenu.show(pdfPro,event.getScreenX(),50);
  }
);
  ContextMenu docbookProMenu=new ContextMenu();
  docbookProMenu.getStyleClass().add("String_Node_Str");
  docbookProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertDocbook();
  }
));
  docbookProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertDocbook(true);
  }
));
  docbookPro.setContextMenu(docbookProMenu);
  docbookPro.setOnMouseClicked(event -> {
    docbookProMenu.show(docbookPro,event.getScreenX(),50);
  }
);
  ContextMenu ebookProMenu=new ContextMenu();
  ebookProMenu.getStyleClass().add("String_Node_Str");
  ebookProMenu.getItems().add(MenuBuilt.name("String_Node_Str").add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertMobi();
  }
)).add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertMobi(true);
  }
)).build());
  ebookProMenu.getItems().add(MenuBuilt.name("String_Node_Str").add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertEpub();
  }
)).add(MenuItemBuilt.item("String_Node_Str").onclick(event -> {
    this.convertEpub(true);
  }
)).build());
  ebookPro.setOnMouseClicked(event -> {
    ebookProMenu.show(ebookPro,event.getScreenX(),50);
  }
);
  ebookPro.setContextMenu(ebookProMenu);
  browserPro.setOnMouseClicked(event -> {
    if (event.getButton() == MouseButton.PRIMARY)     this.externalBrowse();
  }
);
  port=server.getEmbeddedServletContainer().getPort();
  loadConfigurations();
  loadRecentFileList();
  loadShortCuts();
  recentListView.setItems(recentFiles);
  recentFiles.addListener((ListChangeListener<String>)c -> {
    recentListView.visibleProperty().setValue(c.getList().size() > 0);
    recentListView.getSelectionModel().selectFirst();
  }
);
  recentListView.setOnMouseClicked(event -> {
    if (event.getClickCount() > 1) {
      openRecentListFile(event);
    }
  }
);
  treeView.setCellFactory(param -> {
    TreeCell<Item> cell=new TextFieldTreeCell<Item>();
    cell.setOnDragDetected(event -> {
      Dragboard db=cell.startDragAndDrop(TransferMode.ANY);
      ClipboardContent content=new ClipboardContent();
      content.putFiles(Arrays.asList(cell.getTreeItem().getValue().getPath().toFile()));
      db.setContent(content);
    }
);
    return cell;
  }
);
  lastRendered.addListener(lastRenderedChangeListener);
  mathjaxView=new WebView();
  mathjaxView.setVisible(false);
  rootAnchor.getChildren().add(mathjaxView);
  WebEngine mathjaxEngine=mathjaxView.getEngine();
  mathjaxEngine.getLoadWorker().stateProperty().addListener((observableValue1,state,state2) -> {
    JSObject window=(JSObject)mathjaxEngine.executeScript("String_Node_Str");
    if (window.getMember("String_Node_Str").equals("String_Node_Str"))     window.setMember("String_Node_Str",this);
  }
);
  mathjaxEngine.load(String.format("String_Node_Str",port));
  previewEngine=previewView.getEngine();
  previewEngine.load(String.format("String_Node_Str",port));
  previewEngine.getLoadWorker().stateProperty().addListener((observableValue1,state,state2) -> {
    if (state2 == Worker.State.SUCCEEDED) {
      JSObject window=(JSObject)previewEngine.executeScript("String_Node_Str");
      if (window.getMember("String_Node_Str").equals("String_Node_Str")) {
        window.setMember("String_Node_Str",this);
      }
    }
  }
);
  previewEngine.getLoadWorker().exceptionProperty().addListener((ov,t,t1) -> {
    logger.info(t1.getMessage(),t1);
  }
);
  if (Objects.nonNull(config.getWorkingDirectory())) {
    Path path=Paths.get(config.getWorkingDirectory());
    Optional<Path> optional=Files.notExists(path) ? Optional.empty() : Optional.of(path);
    directoryService.setWorkingDirectory(optional);
  }
  Path workDir=directoryService.getWorkingDirectory().orElse(userHome);
  fileBrowser.browse(treeView,workDir);
  tabPane.getTabs().addListener((ListChangeListener<Tab>)c -> {
    if (tabPane.getTabs().isEmpty())     threadService.runActionLater(this::newDoc);
  }
);
  openFileTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    directoryService.getOpenFileConsumer().accept(path);
  }
);
  openFolderTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    path=Files.isDirectory(path) ? path : path.getParent();
    if (Objects.nonNull(path))     getHostServices().showDocument(path.toUri().toASCIIString());
  }
);
  openFolderListItem.setOnAction(event -> {
    Path path=Paths.get(recentListView.getSelectionModel().getSelectedItem());
    path=Files.isDirectory(path) ? path : path.getParent();
    if (Objects.nonNull(path))     getHostServices().showDocument(path.toUri().toASCIIString());
  }
);
  openFileListItem.setOnAction(this::openRecentListFile);
  copyPathTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    this.cutCopy(path.toString());
  }
);
  copyPathListItem.setOnAction(event -> {
    this.cutCopy(recentListView.getSelectionModel().getSelectedItem());
  }
);
  copyTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    this.copyFile(path);
  }
);
  copyListItem.setOnAction(event -> {
    Path path=Paths.get(recentListView.getSelectionModel().getSelectedItem());
    this.copyFile(path);
  }
);
  treeView.setOnMouseClicked(event -> {
    TreeItem<Item> selectedItem=treeView.getSelectionModel().getSelectedItem();
    if (Objects.isNull(selectedItem))     return;
    Path selectedPath=selectedItem.getValue().getPath();
    if (event.getButton() == MouseButton.PRIMARY)     if (event.getClickCount() == 2)     directoryService.getOpenFileConsumer().accept(selectedPath);
  }
);
  threadService.runActionLater(e -> {
    if (tabPane.getTabs().isEmpty()) {
      newDoc(e);
    }
  }
);
}