Commit 6fc89cb3 authored by claudiu.cristea's avatar claudiu.cristea

Issue #2818895 by claudiu.cristea: Handle non-cells

parent 48334f0a
......@@ -114,7 +114,11 @@ class SpreadsheetIterator implements SpreadsheetIteratorInterface {
if ($column_delta === -1) {
return $this->currentRow;
}
return $this->getWorksheet()->getCellByColumnAndRow($column_delta, $this->getAbsoluteRowIndex(), FALSE)->getValue();
elseif ($cell = $this->getWorksheet()->getCellByColumnAndRow($column_delta, $this->getAbsoluteRowIndex(), FALSE)) {
return $cell->getValue();
}
// Fall back to NULL.
return NULL;
},
$all_columns
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment