Explorar el Código

* Fixed AV when no owner is set

git-svn-id: trunk@17262 -
joost hace 14 años
padre
commit
b911e3d1c3
Se han modificado 1 ficheros con 1 adiciones y 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