Commit 1fa832c3 authored by Sean McBride's avatar Sean McBride

Fixed false positive warning about null deref

At the changed line, “graph” and “this->Graph”
should be the same, but the analyzer only sees
that the macro has branches for “graph” being null
or not, then sees it unconditionally dereferenced.

Change-Id: I80f12f4ae3bb31ddadbf72ad0bb522bfba015a20
parent e2dad201
......@@ -60,7 +60,7 @@ void vtkVertexListIterator::SetGraph(vtkGraph *graph)
if (helper)
{
int myRank
= graph->GetInformation()->Get(vtkDataObject::DATA_PIECE_NUMBER());
= this->Graph->GetInformation()->Get(vtkDataObject::DATA_PIECE_NUMBER());
this->Current = helper->MakeDistributedId(myRank, this->Current);
this->End = helper->MakeDistributedId(myRank, this->End);
}
......
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