Error: Cannot invoke "javafx.scene.control.TreeItem.getValue()"

Trying to work on a project and a popup keeps appearing saying:
Cannot invoke “javafx.scene.control.TreeItem.getValue()” because the return value of “javafx.scene.control.TreeTableRow.getTreeItem()” is null

Please share the log file. Help > View log.