mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 18:29:24 +08:00
Fix python plugin crash issues.
This commit is contained in:
parent
4006e4045c
commit
54417115f3
@ -38,6 +38,9 @@ namespace Python.Runtime {
|
||||
|
||||
internal static void Register(Type t) {
|
||||
Dictionary<string, List<string>> nsmap = null;
|
||||
//for Anonymous type, there is no namespace
|
||||
if (t.Namespace == null) return;
|
||||
|
||||
mapping.TryGetValue(t.Namespace, out nsmap);
|
||||
if (nsmap == null) {
|
||||
nsmap = new Dictionary<string, List<string>>();
|
||||
|
Loading…
Reference in New Issue
Block a user