-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
Master - Ubuntu 10.04 x64, Slave - Windows Server 2008 x86
When parsing Gendarme violations I ran into this error:
ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception
java.lang.NullPointerException
at hudson.plugins.violations.types.gendarme.GendarmeParser.parseViolations(GendarmeParser.java:180)
at hudson.plugins.violations.types.gendarme.GendarmeParser.parse(GendarmeParser.java:73)
at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:189)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:116)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899)
at hudson.remoting.UserRequest.perform(UserRequest.java:114)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:270)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
After looking at the code I'm unsure as to how it could happen since there doesn't seem any way for fileName or filePath to become null, I'm quite happy to investigate further with a bit of guidance.
Is there anyway I can directly test parsing one of the XML files, without running it via Hudson? I can't really post them here as it's for all internal code unfortunately.
- is related to
-
JENKINS-36086 NullPointerException in Gendarme Parser for latest Gendarme version
- Closed