# New bugs suddenly popped up in the SonarCloud scan

**URL:** <https://community.sonarsource.com/t/new-bugs-suddenly-popped-up-in-the-sonarcloud-scan/75628>\
**Category:** SonarQube Cloud\
**Tags:** sonarqube, sonarqube-cloud, java\
**Created:** [November 5, 2022, 7:00am UTC](https://community.sonarsource.com/t/new-bugs-suddenly-popped-up-in-the-sonarcloud-scan/75628 "2022-11-05T07:00:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel11](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/daniel11/32/31971_2.png) [@daniel11](https://community.sonarsource.com/u/daniel11)\
**Post date:** [November 5, 2022, 7:00am UTC](https://community.sonarsource.com/t/new-bugs-suddenly-popped-up-in-the-sonarcloud-scan/75628/1 "2022-11-05T07:00:45Z")

</div>

Hi,

We have a daily analysis running on the master branch (similar to the one running after a PR merged, the whole repo scan).

But, there were new bugs (with the same bug type) suddenly popped up for our old code yesterday. The bug is `This method's return value is marked "@NotNull" but null is returned`, which is belong to the `"@NonNull" values should not be set to null` rule (java:S2637).

The log seems normal, same with the previous scans.  
Any idea why the bugs suddenly appeared?

Thanks,  
Daniel

---

<div class="post-metadata">

**Author:** ![chrislain](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/chrislain/32/33859_2.png) [@chrislain](https://community.sonarsource.com/u/chrislain)\
**Post date:** [November 9, 2022, 9:37am UTC](https://community.sonarsource.com/t/new-bugs-suddenly-popped-up-in-the-sonarcloud-scan/75628/5 "2022-11-09T09:37:56Z")

</div>

Hi @daniel11,

Your issue might be related to the release of [[SONARJAVA-4342] - Jira](https://sonarsource.atlassian.net/browse/SONARJAVA-4342).

To be able to give a better answer, would it be possible for you to send a reproducer?

Thanks,  
Chrislain

---

<div class="post-metadata">

**Author:** ![daniel11](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/daniel11/32/31971_2.png) [@daniel11](https://community.sonarsource.com/u/daniel11)\
**Post date:** [November 9, 2022, 3:29pm UTC](https://community.sonarsource.com/t/new-bugs-suddenly-popped-up-in-the-sonarcloud-scan/75628/6 "2022-11-09T15:29:58Z")

</div>

Hi @chrislain,

Yes, confirmed the issue is related to the release of that rule.  
Is there a place where I can find this kind of rule update?

Thanks,  
Daniel

---

<div class="post-metadata">

**Author:** ![chrislain](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/chrislain/32/33859_2.png) [@chrislain](https://community.sonarsource.com/u/chrislain)\
**Post date:** [November 10, 2022, 10:25am UTC](https://community.sonarsource.com/t/new-bugs-suddenly-popped-up-in-the-sonarcloud-scan/75628/7 "2022-11-10T10:25:18Z")

</div>

Hi @Daniel,

You could go to SONARJAVA’s release notes: [Releases · SonarSource/sonar-java · GitHub](https://github.com/SonarSource/sonar-java/releases).

Can you confirm that I can close this issue?

Best,  
Chrislain

---

<div class="post-metadata">

**Author:** ![daniel11](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/daniel11/32/31971_2.png) [@daniel11](https://community.sonarsource.com/u/daniel11)\
**Post date:** [November 10, 2022, 10:53am UTC](https://community.sonarsource.com/t/new-bugs-suddenly-popped-up-in-the-sonarcloud-scan/75628/8 "2022-11-10T10:53:57Z")

</div>

Hi @chrislain,

Sure, you can close this issue.  
Thank you for the assistance.

Best,  
Daniel

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/78532_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [November 22, 2022, 4:57pm UTC](https://community.sonarsource.com/t/new-bugs-suddenly-popped-up-in-the-sonarcloud-scan/75628/10 "2022-11-22T16:57:49Z")

</div>

Closed on November 22, 2022, 4:57pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
