Prevent exception when result of GetFrameList is null
@@ -349,8 +349,10 @@ namespace IronPython.Runtime.Exceptions {
if (!_tracebackSet && _traceback == null) {
var clrException = GetClrException();
var frames = clrException.GetFrameList();
+ if (frames != null) {
__traceback__ = PythonOps.CreateTraceBack(clrException, frames, null, frames.Count);
}
+ }
return _traceback;
}
set {
