codetools: fixed crash, if fpc returns no search paths

git-svn-id: trunk@26847 -
This commit is contained in:
mattias 2010-07-27 09:06:55 +00:00
parent 72d00b6953
commit 5a1cba9ff7

View File

@ -7580,8 +7580,9 @@ begin
// run fpc and parse output
RunFPCVerbose(Compiler,TestFilename,CfgFiles,RealCompiler,UnitPaths,
Defines,Undefines,ExtraOptions);
for i:=0 to UnitPaths.Count-1 do
UnitPaths[i]:=ChompPathDelim(TrimFilename(UnitPaths[i]));
if UnitPaths<>nil then
for i:=0 to UnitPaths.Count-1 do
UnitPaths[i]:=ChompPathDelim(TrimFilename(UnitPaths[i]));
// store the real compiler file and date
if (RealCompiler<>'') and FileExistsCached(RealCompiler) then
RealCompilerDate:=FileAgeCached(RealCompiler);