Преглед на файлове

* Fixed AV when no owner is set

git-svn-id: trunk@17262 -
joost преди 14 години
родител
ревизия
b911e3d1c3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/fcl-web/src/base/fphtml.pp

+ 1 - 1
packages/fcl-web/src/base/fphtml.pp

@@ -812,7 +812,7 @@ begin
       exit;
       end;
     end
-  else //if (owner is TDataModule) then
+  else if assigned(Owner) then //if (owner is TDataModule) then
     begin
     for i := 0 to owner.ComponentCount-1 do if owner.Components[i] is TWebController then
       begin