NullreferenceException at RestoreCommand.PerformAuditAsync(IEnumerable<RestoreTargetGraph> graphs, TelemetryActivity telemetry, CancellationToken token) #13526
Labels
Area:NuGetAudit
Functionality:Restore
Resolution:NeedMoreInfo
This issue appears to not have enough info to take action
Type:Bug
WaitingForCustomer
Applied when a NuGet triage person needs more info from the OP
NuGet Product Used
NuGet SDK
Product Version
net48, net6
Worked before?
6.7.1
Impact
I'm unable to use this version
Repro Steps & Context
Executing the restore command fails since Version 6.8.0 - I tried with all newer versions, including the current preview 6.11.0-preview.2. It fails for net48 and net6 processes. But I assume it would also fail for net8.
In our enterprise environments nuget.config we use local sources (directories) and nuget sources pointing to a JFrog Artifactory instance.
Is that issue already known? Or should I provide more information.
The failing line is in NuGet.Commands.RestoreCommand.PerformAuditAsync:
AuditUtility audit = new AuditUtility(_request.Project.RestoreMetadata.RestoreAuditProperties, _request.Project.FilePath, graphs, _request.DependencyProviders.VulnerabilityInfoProviders, _logger);
in _request.Project.RestoreMetadata.RestoreAuditProperties the RestoreMetadata property is null, maybe because of a missing source error that happened before, which was catched.
Verbose Logs
The text was updated successfully, but these errors were encountered: