diff --git a/ContextMenuManager/Controls/ShellNewList.cs b/ContextMenuManager/Controls/ShellNewList.cs index 1efa063..f9a0e4b 100644 --- a/ContextMenuManager/Controls/ShellNewList.cs +++ b/ContextMenuManager/Controls/ShellNewList.cs @@ -61,6 +61,7 @@ namespace ContextMenuManager.Controls if(string.IsNullOrEmpty(defalutOpenMode)) continue; using(RegistryKey openModeKey = root.OpenSubKey(defalutOpenMode)) { + if(openModeKey == null) continue; string value1 = openModeKey.GetValue("FriendlyTypeName")?.ToString(); string value2 = openModeKey.GetValue("")?.ToString(); value1 = ResourceString.GetDirectString(value1);