Commit f0cebdda authored by Bill Lorensen's avatar Bill Lorensen
Browse files

BUG: Check for NULL in PrintSelf

Must check for NULL before printing OutputString.

Change-Id: I7aa92cccc12598e64884a67fb959d3b9cada99c9
parent 729941b0
......@@ -623,7 +623,10 @@ void vtkX3DExporter::PrintSelf(ostream& os, vtkIndent indent)
os << indent << "WriteToOutputString: "
<< (this->WriteToOutputString ? "On" : "Off") << std::endl;
os << indent << "OutputStringLength: " << this->OutputStringLength << std::endl;
os << indent << "OutputString: " << this->OutputString << std::endl;
if (this->OutputString)
{
os << indent << "OutputString: " << this->OutputString << std::endl;
}
}
......
......@@ -41,7 +41,10 @@ void vtkX3DExporterWriter::PrintSelf(ostream& os, vtkIndent indent)
os << indent << "WriteToOutputString: "
<< (this->WriteToOutputString ? "On" : "Off") << std::endl;
os << indent << "OutputStringLength: " << this->OutputStringLength << std::endl;
os << indent << "OutputString: " << this->OutputString << std::endl;
if (this->OutputString)
{
os << indent << "OutputString: " << this->OutputString << std::endl;
}
}
//----------------------------------------------------------------------------
......
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