diff --git a/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs b/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs index 26bd784e2..a8c14f9f3 100644 --- a/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs +++ b/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs @@ -282,7 +282,7 @@ namespace ICSharpCode.Decompiler.Ast nodeStack.Push(node); startLocations.Push(output.Location); - if (node is AttributedNode && node.GetChildByRole(AstNode.Roles.Identifier).IsNull) + if (node is AttributedNode && node.Annotation() != null && node.GetChildByRole(AstNode.Roles.Identifier).IsNull) output.WriteDefinition("", node.Annotation(), false); MemberMapping mapping = node.Annotation();