mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Attempt to fix nil pointer exception (issue #2157)
This commit is contained in:
@@ -2453,7 +2453,10 @@ end;
|
||||
|
||||
function TDBObject.IsSameAs(CompareTo: TDBObject): Boolean;
|
||||
begin
|
||||
Result := (Name = CompareTo.Name) and (NodeType = CompareTo.NodeType) and (Database = CompareTo.Database);
|
||||
if not Assigned(CompareTo) then
|
||||
Result := False
|
||||
else
|
||||
Result := (Name = CompareTo.Name) and (NodeType = CompareTo.NodeType) and (Database = CompareTo.Database);
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user