Open
Description
Description of the false positive
In general, the cs/dereferenced-value-is-always-null
rule makes sense: https://lgtm.com/rules/1506094316834/
However, if a local is passed to a method by ref
, it is possible that the method changes its value. In particular, if an array is null, Array.Resize
will set it to not null. This applies generally to any method that accepts a parameter by ref
.
URL to the alert on the project page on LGTM.com