Commit 4d65f8d7 authored by Dave Partyka's avatar Dave Partyka
Browse files

BUG: Fix broken TestEmptyInput test.

parent 0f133634
......@@ -50,7 +50,7 @@ string Slash("\\");
string Slash("/");
#endif
vtkCxxRevisionMacro(vtkWindBladeReader, "1.4");
vtkCxxRevisionMacro(vtkWindBladeReader, "1.5");
vtkStandardNewMacro(vtkWindBladeReader);
//----------------------------------------------------------------------------
......@@ -181,6 +181,12 @@ int vtkWindBladeReader::RequestInformation(
vtkInformationVector** vtkNotUsed(inputVector),
vtkInformationVector* outputVector)
{
// Verify that file exists
if ( !this->Filename ) {
vtkErrorMacro("No filename specified");
return 0;
}
// Get ParaView information and output pointers
vtkInformation* fieldInfo = outputVector->GetInformationObject(0);
vtkStructuredGrid *field = vtkStructuredGrid::SafeDownCast(
......
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