diff --git a/components/packagetabs/packagetabs_impl.pas b/components/packagetabs/packagetabs_impl.pas index f6495f20d5..f754376e9d 100644 --- a/components/packagetabs/packagetabs_impl.pas +++ b/components/packagetabs/packagetabs_impl.pas @@ -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;