{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet-security-guard/roslyn-security-guard/issues/42","repository_url":"https://api.github.com/repos/dotnet-security-guard/roslyn-security-guard","labels_url":"https://api.github.com/repos/dotnet-security-guard/roslyn-security-guard/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/dotnet-security-guard/roslyn-security-guard/issues/42/comments","events_url":"https://api.github.com/repos/dotnet-security-guard/roslyn-security-guard/issues/42/events","html_url":"https://github.com/dotnet-security-guard/roslyn-security-guard/issues/42","id":191158155,"number":42,"title":"NullReferenceException in OutputCacheAnnotationAnalyzer","user":{"login":"h3xstream","id":593130,"avatar_url":"https://avatars.githubusercontent.com/u/593130?v=3","gravatar_id":"","url":"https://api.github.com/users/h3xstream","html_url":"https://github.com/h3xstream","followers_url":"https://api.github.com/users/h3xstream/followers","following_url":"https://api.github.com/users/h3xstream/following{/other_user}","gists_url":"https://api.github.com/users/h3xstream/gists{/gist_id}","starred_url":"https://api.github.com/users/h3xstream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3xstream/subscriptions","organizations_url":"https://api.github.com/users/h3xstream/orgs","repos_url":"https://api.github.com/users/h3xstream/repos","events_url":"https://api.github.com/users/h3xstream/events{/privacy}","received_events_url":"https://api.github.com/users/h3xstream/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-23T00:00:56Z","updated_at":"2016-11-23T00:00:56Z","closed_at":null,"body":"Exception cough will scanning an MVC app.\r\n```\r\nSeverity\tCode\tDescription\tProject\tFile\tLine\tSuppression State\tDetail Description\r\nWarning\tAD0001\tAnalyzer 'RoslynSecurityGuard.Analyzers.OutputCacheAnnotationAnalyzer' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'.\tLibMisc\t\t1\tActive\tAnalyzer 'RoslynSecurityGuard.Analyzers.OutputCacheAnnotationAnalyzer' threw the following exception:\r\n'Exception occurred with following context:\r\nCompilation: LibMisc\r\nSyntaxTree: *************\\LibMisc\\ResourceMsg.Designer.cs\r\nSyntaxNode: [global::System.CodeDom.Compiler ... [ClassDeclarationSyntax]@[846..3630) (21,4)-(79,5)\r\n\r\nSystem.NullReferenceException: Object reference not set to an instance of an object.\r\n   at RoslynSecurityGuard.Analyzers.Utils.AnalyzerUtil.ForEachAnnotation(SyntaxList`1 attributes, Action`2 callback)\r\n   at RoslynSecurityGuard.Analyzers.OutputCacheAnnotationAnalyzer.VisitClass(SyntaxNodeAnalysisContext ctx)\r\n   at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass42_1`1.<ExecuteSyntaxNodeAction>b__1()\r\n   at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable`1 info)\r\n-----\r\n'.\r\n```"}}
{"actor":{"display_login":"h3xstream"}}