Commit e84d13a9 authored by Andrew Bauer's avatar Andrew Bauer
Browse files

Fixing null pointer dereferencing.

Mantis issue http://www.paraview.org/Bug/view.php?id=10528
parent 9fcbac09
......@@ -595,7 +595,10 @@ void vtkXMLUnstructuredDataWriter::WriteCellsInline(const char* name,
vtkIdTypeArray* faces, vtkIdTypeArray* faceOffsets,
vtkIndent indent)
{
this->ConvertCells(cells);
if(cells)
{
this->ConvertCells(cells);
}
this->ConvertFaces(faces, faceOffsets);
this->WriteCellsInlineWorker(name, types, indent);
......
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