mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
codetools: fixed crash if identifier is not a node
git-svn-id: trunk@41143 -
This commit is contained in:
parent
777bf16774
commit
910bf5ba13
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user