A check for IsNot Nothing is ignored in ElseIf-branch (see line 13):
Visual BasicPublic Class Class1
Property PropA As String
Property PropB As String
Shared Function Foo(class1 As Class1) As Integer
If class1 IsNot Nothing Then
If class1.PropA IsNot Nothing Then
Return class1.PropA.Length
ElseIf class1.PropB IsNot Nothing Then
'CRR0027 False Positive
Return class1.PropB.Length
End If
End If
Return 0
End Function
End Class
Hello Robert,
Thank you for pointing out this issue.
I have reproduced it. We will send you a notification as soon as we fix it.