You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Got this error in Jenkins job when it invokes sonar analysis. Ran the job with mvn -X(debug mode) and shared the details below. Please let us know your comments
Log:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.10.0.2594:sonar (default-cli) on project X : Cannot invoke "String.equals(Object)" because the return value of "at.porscheinformatik.sonarqube.licensecheck.license.License.getIdentifier()" is null -> [Help 1] #12 58.67 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.10.0.2594:sonar (default-cli) on project client-center-backend: Cannot invoke "String.equals(Object)" because the return value of "at.porscheinformatik.sonarqube.licensecheck.license.License.getIdentifier()" is null
#12 58.69 Caused by: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "at.porscheinformatik.sonarqube.licensecheck.license.License.getIdentifier()" is null #12 58.69 at at.porscheinformatik.sonarqube.licensecheck.ValidateLicenses.lambda$checkSpdxLicense$3 (ValidateLicenses.java:174)
The text was updated successfully, but these errors were encountered:
inrajeee
changed the title
sonar maven plugin cannot be executed because of null pointer exception in Licensecheck
sonar maven plugin issue due to null pointer exception
Nov 21, 2023
Hello,
Got this error in Jenkins job when it invokes sonar analysis. Ran the job with mvn -X(debug mode) and shared the details below. Please let us know your comments
Log:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.10.0.2594:sonar (default-cli) on project X : Cannot invoke "String.equals(Object)" because the return value of "at.porscheinformatik.sonarqube.licensecheck.license.License.getIdentifier()" is null -> [Help 1]
#12 58.67 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.10.0.2594:sonar (default-cli) on project client-center-backend: Cannot invoke "String.equals(Object)" because the return value of "at.porscheinformatik.sonarqube.licensecheck.license.License.getIdentifier()" is null
#12 58.69 Caused by: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "at.porscheinformatik.sonarqube.licensecheck.license.License.getIdentifier()" is null
#12 58.69 at at.porscheinformatik.sonarqube.licensecheck.ValidateLicenses.lambda$checkSpdxLicense$3 (ValidateLicenses.java:174)
The text was updated successfully, but these errors were encountered: