Fix python plugin crash issues.

This commit is contained in:
qianlifeng 2014-04-13 01:07:15 +08:00
parent 4006e4045c
commit 54417115f3

View File

@ -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>>();