[FEM] fix crash with data point filter

- when the filter is upon another filter that e.g. clipped all data, we cannot access data
This commit is contained in:
Uwe
2022-06-12 14:56:54 +02:00
parent 86df83b7a9
commit 12b12fa941

View File

@@ -404,6 +404,10 @@ void FemPostDataAtPointFilter::GetPointData() {
vtkSmartPointer<vtkDataObject> data = m_probe->GetOutputDataObject(0);
vtkDataSet* dset = vtkDataSet::SafeDownCast(data);
vtkDataArray* pdata = dset->GetPointData()->GetArray(FieldName.getValue());
// VTK cannot deliver data when the filer relies e.g. on a scalar clip filter
// whose value is set so that all data are clipped
if (!pdata)
return;
int component = 0;