The error most likely is because oEvent.getSource().getParent() is not the row, but probably the table's column of which the checkbox is a template.
A better approach is to use the checkbox' binding context using oEvent.getSource().getBindingContext() and extract the correct index from there