codetools: fixed crash if identifier is not a node

git-svn-id: trunk@41143 -
This commit is contained in:
mattias 2013-05-12 08:02:02 +00:00
parent 777bf16774
commit 910bf5ba13

View File

@ -722,7 +722,7 @@ begin
AVLNode:=FIdentView.FindLeftMostKey(FIdentSearchItem,
@CompareIdentListSearchWithItemsWithoutParams);
while (AVLNode<>nil)
and not (TIdentifierListItem(AVLNode.Data).Node.Desc in [ctnProcedure,ctnProcedureHead])
and not (TIdentifierListItem(AVLNode.Data).GetDesc in [ctnProcedure,ctnProcedureHead])
and (CompareIdentifiers(Identifier,PChar(TIdentifierListItem(AVLNode.Data).Identifier))=0)
do
AVLNode:=FIdentView.FindSuccessor(AVLNode);