Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit fe1f0af

Browse files
authored
Fix nullref where scope is null (#968)
1 parent cc7d4f7 commit fe1f0af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Analysis/Ast/Impl/Modules/PythonModule.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ public void NotifyAnalysisBegins() {
408408
// recurse into module but only process global scope.
409409
var importedVariables = ((IScope)GlobalScope)
410410
.TraverseDepthFirst(c => c.Children)
411+
.ExcludeDefault()
411412
.SelectMany(s => s.Variables)
412413
.Where(v => v.Source == VariableSource.Import);
413414

0 commit comments

Comments
 (0)