Commit f66d844e authored by John Biddiscombe's avatar John Biddiscombe
Browse files

BUG:Fix a crash when loading state files

parent 8c60172c
......@@ -90,7 +90,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkXdmfReader);
vtkCxxRevisionMacro(vtkXdmfReader, "1.41");
vtkCxxRevisionMacro(vtkXdmfReader, "1.42");
//----------------------------------------------------------------------------
vtkCxxSetObjectMacro(vtkXdmfReader,Controller,vtkMultiProcessController);
......@@ -1111,6 +1111,10 @@ void vtkXdmfReader::DisableAllGrids()
vtkDebugMacro("Disable all grids");
vtkstd::vector<vtkXdmfReaderGrid *>::iterator it;
int changed=0;
if (!this->Internals->Data)
{
return;
}
for ( it = this->Internals->Data->Children.begin();
it != this->Internals->Data->Children.end();
++ it )
......
Supports Markdown
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