From c7ba07404ab34764f6129e4d148d49d5a6dcd5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E7=82=B9lilac?= Date: Fri, 1 Jan 2021 19:30:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=99=A4=E8=8E=B7=E5=8F=96=E6=89=93?= =?UTF-8?q?=E5=BC=80=E6=96=B9=E5=BC=8F=E6=B3=A8=E5=86=8C=E8=A1=A8=E9=A1=B9?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ContextMenuManager/Controls/ShellNewList.cs | 1 + 1 file changed, 1 insertion(+) 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);