Sonar does not accept null check via method

Hey there.

I’ve moved your post to the section on reporting false-positives. Please have a look at this post, and adjust your topic as necessary (adding details like the Rule ID, and exact versions of products used).