Skip to content

Commit 990170e

Browse files
committed
Merge branch 'master' of github.com:pythonnet/pythonnet
2 parents 91818ef + 653b779 commit 990170e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/assemblymanager.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public static AssemblyName[] ListAssemblies()
400400

401401
public static bool IsValidNamespace(string name)
402402
{
403-
return namespaces.ContainsKey(name);
403+
return !String.IsNullOrEmpty(name) && namespaces.ContainsKey(name);
404404
}
405405

406406
//===================================================================
@@ -483,4 +483,4 @@ public static Type LookupType(string qname)
483483
return null;
484484
}
485485
}
486-
}
486+
}

0 commit comments

Comments
 (0)