提交 e7b24214 编写于 作者: J Jared Parsons

Fix NRE

上级 a0747227
......@@ -130,6 +130,11 @@ public void AddMainModuleMvid(Guid mvid)
/// </summary>
private bool IsOwned(Assembly assembly)
{
if (assembly == null)
{
return false;
}
return _mainMvids.Count == 0
|| (assembly.ManifestModule != null && _mainMvids.Contains(assembly.ManifestModule.ModuleVersionId))
|| _loadedAssemblies.Contains(assembly);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册