IDE: Prevent crash in CodeExplorer. AddCodeNode can return Nil. Issue #32786, patch from Timl.

git-svn-id: trunk@56661 -
This commit is contained in:
juha 2017-12-07 14:58:42 +00:00
parent e93ea1ced9
commit f6a2099d25

View File

@ -1282,7 +1282,8 @@ begin
begin
ProcNode:=CodeNode.Parent;
TVNode:=AddCodeNode(cefcLongProcs,ProcNode);
TVNode.Text:=TVNode.Text+' ['+IntToStr(LineCnt)+']';
if Assigned(TVNode) then
TVNode.Text:=TVNode.Text+' ['+IntToStr(LineCnt)+']';
end;
end;
if (cefcEmptyProcs in ObserverCats)