[Demonstration 1]

[Buggy Method]
public void map(Set<ConstraintViolation<?>> constraintViolations, BindingResult bindingResult) {
    for (ConstraintViolation violation : constraintViolations) {
        String propertyPath = violation.getPropertyPath().toString();
        propertyPath = propertyPath.replace("questions", "entries");
        bindingResult.rejectValue(propertyPath, violation.getMessage());
    }
}

[Buggy Hunk]
bindingResult.rejectValue(propertyPath, violation.getMessage());

[Patch]
bindingResult.rejectValue(propertyPath, "x", violation.getMessage());

[Demonstration 2]

[Buggy Method]
@Override
public TableCell getCell(Term field) {
    if (this.header != null && this.row != null) {
        Integer index = this.header.getValue(field);
        if (index != null)
            return (new ExcelTableCell(this.row.getCell(index)));
    }
    return new ExcelTableCell(null);
}

[Buggy Hunk]
if (index!=null) return (new ExcelTableCell(this.row.getCell(index)));

[Patch]
if (index!=null && this.row!=null) return (new ExcelTableCell(this.row.getCell(index)));

[Demonstration 3]

[Buggy Method]
private static List<String> getCellValues(XSSFRow row) {
    List<String> cellValues = new ArrayList<String>();
    int minCell = row.getFirstCellNum();
    int maxCell = row.getLastCellNum();
    for (int num = minCell; num < maxCell; num++) {
        XSSFCell xssfCell = row.getCell(num);
        cellValues.add(xssfCell.toString().toLowerCase());
    }
    return cellValues;
}

[Buggy Hunk]
cellValues.add(xssfCell.toString().toLowerCase());

[Patch]
cellValues.add(getStringValInExcel(xssfCell).toLowerCase());