codetools: prevent AV for incomplete generic types

git-svn-id: trunk@51138 -
This commit is contained in:
ondrej 2016-01-02 21:07:28 +00:00
parent 41e85d83a6
commit d8163c8187

View File

@ -7032,6 +7032,8 @@ begin
end else if Node.Desc<>ctnTypeDefinition then
exit;
Node:=Node.FirstChild;
if Node=nil then
Exit;
Identifier:=@Src[Node.StartPos];
if (Node=nil)
or (not (Node.Desc in AllClasses))