mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Avoid running into access violation when accessing any host tab result when user pressed disconnect button. Fixes issue #3416.
This commit is contained in:
@@ -7188,6 +7188,9 @@ var
|
||||
begin
|
||||
Idx := Sender.GetNodeData(Node);
|
||||
Results := GridResult(Sender);
|
||||
// See issue #3416
|
||||
if (Results = nil) and (Sender <> ListVariables) then
|
||||
Exit;
|
||||
if Results <> nil then
|
||||
Results.RecNo := Idx^;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user