mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 05:59:30 +02:00
IDE: Prevent crash in CodeExplorer. AddCodeNode can return Nil. Issue #32786, patch from Timl.
git-svn-id: trunk@56661 -
This commit is contained in:
parent
e93ea1ced9
commit
f6a2099d25
@ -1282,7 +1282,8 @@ begin
|
|||||||
begin
|
begin
|
||||||
ProcNode:=CodeNode.Parent;
|
ProcNode:=CodeNode.Parent;
|
||||||
TVNode:=AddCodeNode(cefcLongProcs,ProcNode);
|
TVNode:=AddCodeNode(cefcLongProcs,ProcNode);
|
||||||
TVNode.Text:=TVNode.Text+' ['+IntToStr(LineCnt)+']';
|
if Assigned(TVNode) then
|
||||||
|
TVNode.Text:=TVNode.Text+' ['+IntToStr(LineCnt)+']';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
if (cefcEmptyProcs in ObserverCats)
|
if (cefcEmptyProcs in ObserverCats)
|
||||||
|
Loading…
Reference in New Issue
Block a user