Early nullifying
V3080 CWE-476 Possible null dereference. Consider inspecting ‘m_RowRects’. TreeViewControlGUI.cs 272
public override void GetFirstAndLastRowVisible(....) { .... if (rowCount != m_RowRects.Count) { m_RowRects = null; throw new InvalidOperationException(string.Format("....", rowCount, m_RowRects.Count)); } .... }
In this case, the exception throw (access by the null reference m_RowRects
) will happen when generating the message string for another exception.
Please click here to see more bugs from this project.