Skip to content
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

Fix a NullReferenceException in ExplorerBrowser by adjusting the order of static readonly fields. #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wangfu91
Copy link

@wangfu91 wangfu91 commented Feb 1, 2024

Repro steps:

  1. Open .\source\Samples\ExplorerBrowser\CS\ExplorerBrowser.sln in VS
  2. Set WPFExplorerBrowserDemo as the startup project
  3. Hit F5

Call stack:

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Microsoft.WindowsAPICodePack.Shell
  StackTrace:
   at Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation.ExplorerBrowser..cctor()
 in D:\Playground\Windows-API-Code-Pack-1.1\source\WindowsAPICodePack\Shell\ExplorerBrowser\ExplorerBrowser.WPF.xaml.cs:line 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant