mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 05:19:31 +02:00
Debugger: Fix possible crash on start of IDE
git-svn-id: trunk@28182 -
This commit is contained in:
parent
cbbf6dfa12
commit
e0ad0b5556
@ -1874,6 +1874,8 @@ var
|
||||
TheDialog: TIDEInspectDlg;
|
||||
begin
|
||||
TheDialog := TIDEInspectDlg(FDialogs[ddtInspect]);
|
||||
if (SourceEditorManager.GetActiveSE = nil) then
|
||||
exit;
|
||||
if SourceEditorManager.GetActiveSE.SelectionAvailable then
|
||||
TheDialog.Execute(SourceEditorManager.GetActiveSE.Selection)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user