I am currently getting an error that I do not understand. The exception that is thrown points to nothing in my code, yet it is only thrown after I repopulate a TreeTableView by
private void populate() {
root.getChildren().clear()
for (int i = 1; i <= 10; i++) {
String string = "String " + i;
TreeItem<String> treeItem = new TreeItem<String>(string);
root.getChildren().add(treeItem);
// --------------Clear the selection -------------
table.getSelectionModel().clearSelection();
// -----------------------------------------------
}
}