Bug in vtkDataSetReder

John Biddiscombe j.biddiscombe at rl.ac.uk
Sat Sep 18 13:24:06 EDT 1999


in vtkDataSetReder GetOutput()

the filter does

  this->Execute();
  return (vtkDataSet *)this->Outputs[0];

but if it has a bad filename or a file read error then Outputs is not
defined and an access violation occurs.

  this->Execute();
  if (Outputs) {
  	return (vtkDataSet *)this->Outputs[0];
  } else return NULL;

might be better.

ta taa

John B




-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list