Warning AD0001 : Analyzer '' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'. #72046
Labels
Area-Compilers
Concept-API
This issue involves adding, removing, clarification, or modification of an API.
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Version Used:
Microsoft.CodeAnalysis.CSharp 4.3.0
This repository will throw the exception when building:
https://github.com/thomhurst/AD0001.Replication
Basically I'm passing in an argument of
null
to aparams object?[]
parameter in an attribute.The source code for the analyzer that is throwing the exception is here:
This code has NO nullability warnings and I am also not suppressing any nullability warnings. Yet it is apparently throwing a NullReferenceException.
My best guess is that this line is the issue? But I'm really not sure.
The text was updated successfully, but these errors were encountered: