Sonar Community
False Positive for Rule java:S2259: “A NullPointerException could be thrown; map() can return null.”
SonarQube Cloud
sonarqube-cloud
,
java
,
sonarqube
ganncamp
(G Ann Campbell)
November 20, 2024, 3:37pm
4
Hi,
You haven’t provided the rule ID, so I can’t be sure, but I suspect this is the same issue…?
Ann
show post in topic
Related topics
Topic
Replies
Views
Activity
Rule java:S2259: False-positive NullPointerException bug logged when variable is null-checked by an imported method
Report False-positive / False-negative...
java
,
sonarqube-cloud
6
3716
June 6, 2024
FP java:S2259 Optional.map()
Report False-positive / False-negative...
java
,
sonarqube
3
93
March 12, 2025
A "NullPointerException" could be thrown; "ofNullable()" can return null
SonarQube Server / Community Build
4
153
March 17, 2025
False positive about potential null access
SonarQube Server / Community Build
java
,
sonarqube-ide
1
19
November 20, 2024
Can you tell me the scenario for null pointer
Report False-positive / False-negative...
java
,
sonarqube-ide
3
629
May 25, 2022