Fortify is reporting NullDereference on line 2 of the following code however the code is clearly checking for null on line 1. How do I resolve this issue?
If Not collectUpdates.IsNullOrEmpty() Then For Each update As CollectStatusUpdate In collectUpdates ... Next End If <Extension()> Public Function IsNullOrEmpty(Of T)(source As IEnumerable(Of T)) As Boolean Return source Is Nothing OrElse Not source.Any() End Function