Explorar o código

* Fixed AV when no owner is set

git-svn-id: trunk@17262 -
joost %!s(int64=14) %!d(string=hai) anos
pai
achega
b911e3d1c3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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