Преглед изворни кода

* 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