mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 17:39:18 +02:00
codetools: prevent AV for incomplete generic types
git-svn-id: trunk@51138 -
This commit is contained in:
parent
41e85d83a6
commit
d8163c8187
@ -7032,6 +7032,8 @@ begin
|
|||||||
end else if Node.Desc<>ctnTypeDefinition then
|
end else if Node.Desc<>ctnTypeDefinition then
|
||||||
exit;
|
exit;
|
||||||
Node:=Node.FirstChild;
|
Node:=Node.FirstChild;
|
||||||
|
if Node=nil then
|
||||||
|
Exit;
|
||||||
Identifier:=@Src[Node.StartPos];
|
Identifier:=@Src[Node.StartPos];
|
||||||
if (Node=nil)
|
if (Node=nil)
|
||||||
or (not (Node.Desc in AllClasses))
|
or (not (Node.Desc in AllClasses))
|
||||||
|
Loading…
Reference in New Issue
Block a user