Skip to content

Commit 3dcde2f

Browse files
committed
changed ModuleExceptions to only return non-null (i.e. actual) exceptions
1 parent f0a561c commit 3dcde2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.Parsing/VBA/RubberduckParserState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private void OnStateChanged()
7171

7272
public IReadOnlyList<Tuple<VBComponent, SyntaxErrorException>> ModuleExceptions
7373
{
74-
get { return _moduleExceptions.Select(kvp => Tuple.Create(kvp.Key, kvp.Value)).ToList(); }
74+
get { return _moduleExceptions.Select(kvp => Tuple.Create(kvp.Key, kvp.Value)).Where(item => item.Item2 != null).ToList(); }
7575
}
7676

7777
public event EventHandler<ParseProgressEventArgs> ModuleStateChanged;

0 commit comments

Comments
 (0)