mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-04 19:11:13 +01:00
sqldb: fixed uninitialized value
git-svn-id: trunk@40933 -
This commit is contained in:
parent
3165b86c44
commit
715589d6e8
@ -269,8 +269,9 @@ begin
|
||||
if not LazarusIDE.BeginCodeTools then
|
||||
Exit;
|
||||
SrcEdit := SourceEditorManagerIntf.ActiveEditor;
|
||||
if Assigned(SrcEdit) then
|
||||
Code := TCodeBuffer(SrcEdit.CodeToolsBuffer);
|
||||
if SrcEdit=nil then
|
||||
Exit;
|
||||
Code := TCodeBuffer(SrcEdit.CodeToolsBuffer);
|
||||
if Code = nil then
|
||||
Exit;
|
||||
Comp := GetComponent(0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user