Skip to content

Sonar Report generation error #9

Description

@BraisVQ

SonarQube report execution errors, when main/master branch is empty in Sonar or does not contain data

First error:

+ set +x
Exception in thread "main" org.json.JSONException: JSONObject["analysisDate"] not found.
	at org.json.JSONObject.get(JSONObject.java:596)
	at org.json.JSONObject.getString(JSONObject.java:883)
	at GenerateSonarReport.main(GenerateSonarReport.java:104)

Second error:

+ set +x
Exception in thread "main" org.json.JSONException: JSONArray[0] not found.
  at org.json.JSONArray.get(JSONArray.java:273)
  at org.json.JSONArray.getJSONObject(JSONArray.java:486)
  at GenerateSonarReport.main(GenerateSonarReport.java:346)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions