Skip to content

Commit 64269ed

Browse files
Fixed null ref exception
1 parent 438992f commit 64269ed

File tree

1 file changed

+1
-1
lines changed
  • src/toolkit/Community.VisualStudio.Toolkit.Shared/MEF

1 file changed

+1
-1
lines changed

src/toolkit/Community.VisualStudio.Toolkit.Shared/MEF/TokenTag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class TokenTag : ITag
1818
public TokenTag(object tokenType, IEnumerable<ErrorListItem> errors)
1919
{
2020
TokenType = tokenType;
21-
Errors = errors.ToList() ?? new();
21+
Errors = errors?.ToList() ?? new();
2222
}
2323

2424
/// <summary>

0 commit comments

Comments
 (0)