Issue java:S2259 in sonarlint and sonarqube

I scan my source code with sonarlint and sonarquebe. In Sonarlint have issue " Null pointers should not be dereferenced" but on sonarquebe the error is not detected even though the rule is set in the quality profile. Is this a known issue?
Source code : java
Sonarqube 7.9

1 Like


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9 → 8.9.9 → 9.5 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

Hi Colin ,
We have upgraded to 9.4 but it still doesn’t solve the above problem.
Thank you for reading
We look forward to your response