Replace this duplicate line with "TableTuple searchKey(tableIndex->getKeySchema());"