* Initialize nil-pointer

git-svn-id: trunk@17612 -
This commit is contained in:
joost 2011-05-30 17:45:11 +00:00
parent e727dcc1a4
commit 0fe7c07bbb

View File

@ -310,6 +310,7 @@ begin
try
MC:=Nil;
M:=NIL;
MI:=Nil;
If (OnGetModule<>Nil) then
OnGetModule(Self,ARequest,MC);
If (MC=Nil) then
@ -322,7 +323,7 @@ begin
end;
M:=FindModule(MC); // Check if a module exists already
If (M=Nil) then
if Mi.SkipStreaming then
if assigned(MI) and Mi.SkipStreaming then
M:=MC.CreateNew(Self)
else
M:=MC.Create(Self);