Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static analysis showing null pointers being dereferenced #2

Open
huornlmj opened this issue Jul 22, 2019 · 1 comment
Open

Static analysis showing null pointers being dereferenced #2

huornlmj opened this issue Jul 22, 2019 · 1 comment

Comments

@huornlmj
Copy link

Sonarqube 7.8 community shows some issues, in particular possible null pointers being dereferenced. Example in
src/main/java/org/jheaps/tree/BinaryTreeSoftAddressableHeap.java.

Line 810 implies that 'cur1' can be null. In Line 772 'cur1' is dereferenced. Same happens with 'cur2'. Also in src/main/java/org/jheaps/tree/BinaryTreeSoftHeap.java.

Is this expected or false positive?

@d-michail
Copy link
Owner

Hi,

this is indeed a false positive. Anyway, thanks for your comment. I took the opportunity to clean up the code based on SonarCube's findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants