Skip to content

Commit

Permalink
Use null check
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianAmbrosini committed Oct 17, 2024
1 parent 2fede3e commit 19c3050
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private static Orchestrator createOrchestrator() {

// The number of results depends on the XML plugin version. Since not all plugin versions are compatible with
// all SonarQube versions, we will run tests with XML plugin on the latest SQ version.
if ("LATEST_RELEASE".equals(version)) {
if (version != null && version.equals("LATEST_RELEASE")) {
orchestrator.addPlugin(TestUtils.getMavenLocation("org.sonarsource.xml", "sonar-xml-plugin", System.getProperty("sonar.xmlplugin.version", "LATEST_RELEASE")));
}
return orchestrator.build();
Expand Down

0 comments on commit 19c3050

Please sign in to comment.