codetools: ppugraph: fixed crash

git-svn-id: trunk@47068 -
This commit is contained in:
mattias 2014-12-02 19:25:57 +00:00
parent 52e7e3ba59
commit 7b35896fd2

View File

@ -833,7 +833,7 @@ begin
if pmfAutoDisabled in Member.Flags then exit;
Include(Member.Flags,pmfAutoDisabled);
GraphNode:=FUnitGraph.GetGraphNode(Member.KeyNode,false);
if GraphNode.InTree=nil then exit;
if (GraphNode=nil) or (GraphNode.InTree=nil) then exit;
AVLNode:=GraphNode.InTree.FindLowest;
while AVLNode<>nil do begin
GraphEdge:=TCodeGraphEdge(AVLNode.Data);