Skip to content
Snippets Groups Projects
Commit a91e04e9 authored by Cory Quammen's avatar Cory Quammen Committed by Kitware Robot
Browse files

Merge topic 'fix-append-location-attributes'


d2e2b3a6 Guard against null vtkPoints object

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !6435
parents ea22bda8 d2e2b3a6
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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