提交 f9661a99 编写于 作者: T Traian Anghel 提交者: Dustin Campbell

fixed DebugType ArgumentNullException

in the situation where DebugType is mising and the DebugSymbols property is set to true, the TryGetValue method of the s_debugTypeValues dictionary would throw an exception
上级 45642949
......@@ -167,8 +167,7 @@ protected void ReadDebugInfo()
if (emitDebugInfo)
{
var debugType = Project.ReadPropertyString(PropertyNames.DebugType);
if (s_debugTypeValues.TryGetValue(debugType, out var value))
if (debugType != null && s_debugTypeValues.TryGetValue(debugType, out var value))
{
Add("debug", value);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册