Skip to content

Exception from the extension when saving options is causing VS 2022 to terminate. #313

@nm515350

Description

@nm515350

Installed product versions

  • Visual Studio: 2022 Enterprise Version 17.4.3
  • This extension: [1.1.189]

Description

Exception from the extension when options saved while the Fine Code Coverage tool window is not open.

Steps to recreate

  1. Close Fine Code Coverage tool window
    image
  2. Restart Visual Studio 2022
  3. Confirm the Fine Code Coverage window is not open.
  4. Select Tools -> Options
  5. Modify any Fine Code Coverage option - I've been toggling the Enabled option.
  6. Select OK to save the options.
  7. Select Tools -> Options
  8. Modify any Fine Code Coverage option - I've been toggling the Enabled option.
  9. Select OK to save the options.
  10. A wait cursor is displayed and after WERFault.exe has completed, Visual Studio 2022 terminates.

Current behavior

Exception from the extension when options saved while the Fine Code Coverage tool window is not open.

Expected behavior

Visual Studio 2022 should not crash when saving options.

Side Notes

  • Debugging the extension, I see that the exception is of type System.NullReferenceException
    image
  • Following the code back to where environmentFontDetails is initialized, it's in public OutputToolWindowControl(IEventAggregator eventAggregator)
  • So by opening the Fine Code Coverage tool window, I see environmentFontDetails being initialized and thereafter I can save option changes successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions