Skip to content

Commit 4a83cd0

Browse files
Bart KoelmanBart Koelman
authored andcommitted
Crashfix while writing code
1 parent a95a580 commit 4a83cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CSharpGuidelinesAnalyzer/CSharpGuidelinesAnalyzer/Rules/ClassDesign/TypeShouldHaveASinglePurposeAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public override void Initialize([NotNull] AnalysisContext context)
5757
private static void AnalyzeTypeDeclaration(SyntaxNodeAnalysisContext context)
5858
{
5959
SyntaxToken identifier = IdentifierResolver.Visit(context.Node);
60-
if (identifier == default)
60+
if (identifier == default || string.IsNullOrEmpty(identifier.ValueText))
6161
{
6262
return;
6363
}

0 commit comments

Comments
 (0)