diff --git a/Filters/General/vtkAppendLocationAttributes.cxx b/Filters/General/vtkAppendLocationAttributes.cxx index dc331c7101470c5fe852a283509d0f6e68ab0f4f..45e7d4e642cfb639ca3283ed462fb5fe464348a4 100644 --- a/Filters/General/vtkAppendLocationAttributes.cxx +++ b/Filters/General/vtkAppendLocationAttributes.cxx @@ -61,7 +61,7 @@ int vtkAppendLocationAttributes::RequestData(vtkInformation* vtkNotUsed(request) { vtkPointData* outPD = output->GetPointData(); vtkPointSet* outPointSet = vtkPointSet::SafeDownCast(output); - if (outPointSet) + if (outPointSet && outPointSet->GetPoints()) { // Access point data array and shallow copy it to a point data array vtkDataArray* pointArray = outPointSet->GetPoints()->GetData();