IDE: fixed possible crash, bug #10171

git-svn-id: trunk@14490 -
This commit is contained in:
mattias 2008-03-10 17:47:41 +00:00
parent b44b0d5c00
commit 11c51b535c

View File

@ -3759,7 +3759,8 @@ begin
StaticPackagesInc:='';
Dependency:=FirstAutoInstallDependency;
while Dependency<>nil do begin
if (not Dependency.RequiredPackage.AutoCreated) then
if (Dependency.RequiredPackage<>nil)
and (not Dependency.RequiredPackage.AutoCreated) then
StaticPackagesInc:=StaticPackagesInc+Dependency.PackageName+','+LineEnding;
Dependency:=Dependency.NextRequiresDependency;
end;