* Added check for circular datasource reference in case datasource not nil

git-svn-id: trunk@8168 -
This commit is contained in:
michael 2007-07-27 09:06:42 +00:00
parent 9bc1c04688
commit a093c52815

View File

@ -1413,7 +1413,7 @@ begin
DS:=DataSource;
If (AValue<>DS) then
begin
If (AValue.Dataset=Self) then
If Assigned(AValue) and (AValue.Dataset=Self) then
DatabaseError(SErrCircularDataSourceReferenceNotAllowed,Self);
If Assigned(DS) then
DS.RemoveFreeNotification(Self);