'NullReferenceException' occurs when getting 'Microsoft.CodeAnalysis.TypeInfo' #35261
Labels
Area-Compilers
fabric-bot-test
Testing the impact of changes to the fabric bot
Need More Info
The issue needs more information to proceed.
Tenet-Reliability
Customer telemetry indicates that the product is failing in a crash/hang/dataloss manner.
Milestone
When using
Microsoft.CodeAnalysis
libraries, I faced a problem that when callingGetTypeInfo
(extension method forSemanticModel
),NullReferenceException
occurs. The node for which a character is requested –ConstantPatternSyntax
.The used version is Microsoft.CodeAnalysis: 3.0.19.17001
Stack trace:
It also seems like the problem is reproduced in Visual Studio.
Visual Studio version: 16.0.2
If in this code you try to get
TypeSymbol
fromConstantPatternExpression
(null
) through Syntax Visualizer, Visual Studio will restart. In Event Viewer you can find a corresponding recording with description:The text was updated successfully, but these errors were encountered: