提交 c7a17cce 编写于 作者: A Andrew Casey

Fix NullReferenceException in EE

I made a struct into a class (in 0d415c29) but I missed a null check
around an existing member access.
上级 17b8a1b6
......@@ -132,13 +132,12 @@ internal static object GetSymReader(this DkmClrModuleInstance clrModule)
ResultProperties resultProperties,
DkmClrRuntimeInstance runtimeInstance)
{
if (compResult.Assembly == null)
if (compResult == null)
{
Debug.Assert(compResult.TypeName == null);
Debug.Assert(compResult.MethodName == null);
return null;
}
Debug.Assert(compResult.Assembly != null);
Debug.Assert(compResult.TypeName != null);
Debug.Assert(compResult.MethodName != null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册