Fortify将带有item.WaitForComplete(0)
的行标记为空取消引用。对我来说,这似乎是一个错误的肯定,因为在上方检查了“项目”是否为null。为什么Fortify会标记这个的任何想法?
if (item != null)
{
bool isComplete = item.WaitForComplete(0);
if (isComplete)
{
Program.ConsoleWriteLine("{0} - StopIndexingItem for job {1} already stopped removing from list", item._objItemRequest.CaseName, item._objItemRequest.JobId);
itemListIndexing.RemoveItem(item);
}
}