Skip to content

Upgrade Packages per-Specific Feed can throw NullReferenceException with useless log message #14231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jzabroski opened this issue Apr 7, 2025 · 2 comments
Labels
Functionality:VisualStudioUI Package Manager UI et al RegressionFromPreviousRTM A regression from the last RTM. Example: worked in 6.2, doesn't work in 6.3 Type:Bug WaitingForCustomer Applied when a NuGet triage person needs more info from the OP

Comments

@jzabroski
Copy link

jzabroski commented Apr 7, 2025

NuGet Product Used

Visual Studio Package Management UI

Product Version

Nuget Package Manager 6.13.2 (Visual Studio 17.13.2)

Worked before?

Never seen this error before. Previously was on VS 17.12.5 (Feb 11, 2025 release)

Impact

It bothers me. A fix would be nice

Repro Steps & Context

This happens in-between uninstall/install and restore steps.

Verbose Logs

Successfully uninstalled 'TestingHelpers 1.5.23' from CMG.Tests
Successfully installed 'TestingHelpers 1.5.26' to CMG.Tests
Executing nuget actions took 151 ms
Time Elapsed: 00:00:08.3943593
========== Finished ==========

Object reference not set to an instance of an object.
Restored D:\Source\Common.Tests\Common.Tests.csproj (in 870 ms).
@Nigusu-Allehu Nigusu-Allehu added the WaitingForCustomer Applied when a NuGet triage person needs more info from the OP label Apr 18, 2025
@Nigusu-Allehu
Copy link
Contributor

Thanks for the report! I tried to reproduce this issue by installing and uninstalling a package (e.g., Newtonsoft.Json) using the PMUI with a specific feed selected, but I wasn’t able to hit the same error.

Could you clarify:

  • Does this only happen with a specific package?
  • Is there a particular project type or setup involved?
  • Does it consistently repro in your environment?

Any additional details would help us narrow it down.

@Nigusu-Allehu Nigusu-Allehu added Functionality:VisualStudioUI Package Manager UI et al RegressionFromPreviousRTM A regression from the last RTM. Example: worked in 6.2, doesn't work in 6.3 and removed Triage:Untriaged labels Apr 18, 2025
@jzabroski
Copy link
Author

it doesn't consist repeat but initial thought was c# control flow analysis should catch potential NREs in the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:VisualStudioUI Package Manager UI et al RegressionFromPreviousRTM A regression from the last RTM. Example: worked in 6.2, doesn't work in 6.3 Type:Bug WaitingForCustomer Applied when a NuGet triage person needs more info from the OP
Projects
None yet
Development

No branches or pull requests

2 participants