Skip to content
Snippets Groups Projects
Commit 5e494022 authored by Zack Galbreath's avatar Zack Galbreath
Browse files

fix TestEmptyInput for vtkDelimitedTextReader

Return early if this class is supposed to read from a file
and no file name has been set.

Change-Id: I84457c57893a851ee5917436cf50aa8a24ff8218
parent f35db37a
No related branches found
No related tags found
No related merge requests found
......@@ -612,6 +612,11 @@ int vtkDelimitedTextReader::RequestData(
if(!this->ReadFromInputString)
{
// If the filename hasn't been specified, we're done ...
if(!this->FileName)
{
return 1;
}
// Get the total size of the input file in bytes
file_stream.open(this->FileName, ios::binary);
if(!file_stream.good())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment