Avoid running into access violation when accessing any host tab result when user pressed disconnect button. Fixes issue #3416.

This commit is contained in:
Ansgar Becker
2013-11-09 05:22:28 +00:00
parent 98e8306351
commit 02504106f0

View File

@@ -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^;