Open jmarolf opened 9 years ago
Hmm, I'm still wondering how this can happen. The Document
instance we pass here is something we receive from Roslyn (it's an overridden method):
Wouldn't that mean that Roslyn has passed a null reference to us?
And I also don't see in our code, where we could create a null Document
in this analyzer:
Customer reported a stacktrace at https://github.com/dotnet/roslyn/issues/5121.
My plan is to make sure the Simplifier throws ArgumentNull exceptions so this is easier to track down, but let me know if you have other suggestions.