mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +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