mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 10:35:58 +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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user