-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Linux (RHEL on slave)
- Warnings Next Generation Plugin Version 9.12.0
- Jenkins 2.332.3
on a cppcheck result file triggers:
[CPPCheck] [-ERROR-] Parsing of file '/datafs/jenkins/cppcheck/results/issues.xml' failed due to an exception: [CPPCheck] [-ERROR-] java.lang.NullPointerException: file [CPPCheck] [-ERROR-] at se.bjurr.violations.lib.util.Utils.checkNotNull(Utils.java:27) [CPPCheck] [-ERROR-] at se.bjurr.violations.lib.model.Violation.<init>(Violation.java:185) [CPPCheck] [-ERROR-] at se.bjurr.violations.lib.model.Violation$ViolationBuilder.build(Violation.java:35) [CPPCheck] [-ERROR-] at se.bjurr.violations.lib.parsers.CPPCheckParser.parseReportOutput(CPPCheckParser.java:107) [CPPCheck] [-ERROR-] at edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter.parse(AbstractViolationAdapter.java:36) [CPPCheck] [-ERROR-] [wrapped] edu.hm.hafner.analysis.ParsingException: Exception occurred during parsing NullPointerException: file java.lang.NullPointerException: file at se.bjurr.violations.lib.util.Utils.checkNotNull(Utils.java:27) at se.bjurr.violations.lib.model.Violation.<init>(Violation.java:185) at se.bjurr.violations.lib.model.Violation$ViolationBuilder.build(Violation.java:35) at se.bjurr.violations.lib.parsers.CPPCheckParser.parseReportOutput(CPPCheckParser.java:107) at edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter.parse(AbstractViolationAdapter.java:36) at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:48) at io.jenkins.plugins.analysis.core.model.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:105) at io.jenkins.plugins.analysis.core.model.FilesScanner.scanFiles(FilesScanner.java:89) at io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:72) at io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:30) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3487) at hudson.remoting.UserRequest.perform(UserRequest.java:211) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:376) at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [CPPCheck] [-ERROR-] at se.bjurr.violations.lib.util.Utils.checkNotNull(Utils.java:27) [CPPCheck] [-ERROR-] at se.bjurr.violations.lib.model.Violation.<init>(Violation.java:185) [CPPCheck] [-ERROR-] at se.bjurr.violations.lib.model.Violation$ViolationBuilder.build(Violation.java:35) [CPPCheck] [-ERROR-] at se.bjurr.violations.lib.parsers.CPPCheckParser.parseReportOutput(CPPCheckParser.java:107) [CPPCheck] [-ERROR-] at edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter.parse(AbstractViolationAdapter.java:36) [CPPCheck] [-ERROR-] at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:48) [CPPCheck] [-ERROR-] at io.jenkins.plugins.analysis.core.model.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:105) [CPPCheck] [-ERROR-] at io.jenkins.plugins.analysis.core.model.FilesScanner.scanFiles(FilesScanner.java:89) [CPPCheck] [-ERROR-] at io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:72) [CPPCheck] [-ERROR-] at io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:30) [CPPCheck] [-ERROR-] at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3487) [CPPCheck] [-ERROR-] at hudson.remoting.UserRequest.perform(UserRequest.java:211) [CPPCheck] [-ERROR-] at hudson.remoting.UserRequest.perform(UserRequest.java:54) [CPPCheck] [-ERROR-] at hudson.remoting.Request$2.run(Request.java:376) [CPPCheck] [-ERROR-] at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78) [CPPCheck] [-ERROR-] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [CPPCheck] [-ERROR-] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [CPPCheck] [-ERROR-] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [CPPCheck] [-ERROR-] at java.lang.Thread.run(Thread.java:748) [CPPCheck] [-ERROR-] at edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter.parse(AbstractViolationAdapter.java:41) [CPPCheck] [-ERROR-] at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:48) [CPPCheck] [-ERROR-] at io.jenkins.plugins.analysis.core.model.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:105) [CPPCheck] [-ERROR-] at io.jenkins.plugins.analysis.core.model.FilesScanner.scanFiles(FilesScanner.java:89) [CPPCheck] [-ERROR-] at io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:72) [CPPCheck] [-ERROR-] at io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:30) [CPPCheck] [-ERROR-] at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3487) [CPPCheck] [-ERROR-] at hudson.remoting.UserRequest.perform(UserRequest.java:211) [CPPCheck] [-ERROR-] at hudson.remoting.UserRequest.perform(UserRequest.java:54) [CPPCheck] [-ERROR-] at hudson.remoting.Request$2.run(Request.java:376) [CPPCheck] [-ERROR-] at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78) [CPPCheck] [-ERROR-] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [CPPCheck] [-ERROR-] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [CPPCheck] [-ERROR-] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [CPPCheck] [-ERROR-] at java.lang.Thread.run(Thread.java:748)