Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sonar maven plugin issue due to null pointer exception #402

Open
inrajeee opened this issue Nov 21, 2023 · 1 comment
Open

sonar maven plugin issue due to null pointer exception #402

inrajeee opened this issue Nov 21, 2023 · 1 comment

Comments

@inrajeee
Copy link

inrajeee commented 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)

@inrajeee 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
@Janpopan
Copy link
Contributor

@inrajeee have you some more context? Which SQ version, which plugin version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants