I am using gong-shell library in an open-source project. My application started crashing after I started to use gong-shell. Here is the scenario:
Environment: Windows 7, TortoiseSVN
Application: Windows Forms Application (x86) (supports .NET 2.0+)
ShellTreeView.RootFolder can be set by the user in runtime.
1. User navigates to a SVN working copy, and performs an SVN operation via TortoiseSVN (say "SVN Update"),
2. ShellNotificationListener receives an SHCNE.UPDATEITEM from the Windows shell namespace (specific item is "Desktop"),
3. ShellTreeView.m_ShellListener_ItemUpdated tries to find the parent of this item based on the tag,
4. ShellTreeView finds the first node that is not initialized/fetched (folder tags are null until they are fetched???)
5. ShellTreeView.RefreshItem throws NPE since tag is null.
I have attached the patch that I used to fix the issue. Hope you find it useful.
updated patch file