C#void MethodName(object param)
{
if (param is not string str)
{
return;
}
Console.WriteLine(str.Length);
}
Static Code Analysis - ‘Possible System.NullReferenceException’ false positive when the ‘is not’ pattern is used
Answers approved by DevExpress Support
We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.
Note: Hotfixes may be unavailable for betas/updates set for release within a week.
- v20.2.10Download Official Update