Why null check not working before method call?

I’ve moved your post to the category on reporting false-positives.

Make sure to read this post before raising a thread here:

We’re missing some information (like the specific rule ID)