java.lang.IllegalStateException: Unable to blame file src/com/***/**.java at org.sonarsource.scm.git.JGitBlameCommand.blame(JGitBlameCommand.java:128) at org.sonarsource.scm.git.JGitBlameCommand.access$000(JGitBlameCommand.java:44) at org.sonarsource.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:112) at org.sonarsource.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:109) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.eclipse.jgit.treewalk.filter.PathFilter.create(PathFilter.java:77) at org.eclipse.jgit.blame.BlameGenerator.<init>(BlameGenerator.java:161) at org.eclipse.jgit.api.BlameCommand.call(BlameCommand.java:203) at org.sonarsource.scm.git.JGitBlameCommand.blame(JGitBlameCommand.java:126) ... 7 more
I initially thought this may be due to JGit, but on further inspection of the logs, I could see that the issue occurs on the first line of code within the org.sonarsource.scm.git.JGitBlameCommand.blame() method:
String filename = pathResolver.relativePath(gitBaseDir, inputFile.file());
The relativePath() method is returning a null value, however, there is no null check done in the subsequent lines of code. The PathResolver.relativePath() method is clearly marked with a "@CheckForNull" annotation, so I believe this is necessary. I am not sure if this is a bug with the PathResolver.relativePath() method, or an error with one of the inputs being sent to this method.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/db9b2bdd-20ee-483b-9bc3-c6fa5c7d71fb%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/M37HZ0Kbzcc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/34291b9e-139f-4d38-8d36-10e85a570f65%40googlegroups.com.
When is the LTS 6.7 release expected?