Commit f6a2099d authored by Juha Manninen's avatar Juha Manninen
Browse files

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

git-svn-id: trunk@56661 -
parent e93ea1ce
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment