packagetabs: prevent AV

git-svn-id: trunk@51143 -
This commit is contained in:
ondrej 2016-01-03 12:00:12 +00:00
parent bd5f13d1e9
commit 3fb93ad0bf

View File

@ -385,7 +385,10 @@ begin
if not Result then Exit;
FCurProjectChangeStamp := LazarusIDE.ActiveProject.ChangeStamp;
if LazarusIDE.ActiveProject <> nil then
FCurProjectChangeStamp := LazarusIDE.ActiveProject.ChangeStamp
else
FCurProjectChangeStamp := Low(FCurProjectChangeStamp);
FPackagesChangeStamp := PackageGraphInterface.ChangeStamp;
FLastInternalChangeStamp := FInternalChangeStamp;
end;