NullPointerException in Publisher

Details

Description

Console Output on Builds:

>>>
Recording plot data
ERROR: Publisher hudson.plugins.plot.PlotPublisher aborted due to exception
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
at java.util.regex.Matcher.reset(Matcher.java:308)
at java.util.regex.Matcher.<init>(Matcher.java:228)
at java.util.regex.Pattern.matcher(Pattern.java:1088)
at hudson.plugins.plot.XMLSeries.getUrl(XMLSeries.java:294)
at hudson.plugins.plot.XMLSeries.addValueToList(XMLSeries.java:412)
at hudson.plugins.plot.XMLSeries.loadSeries(XMLSeries.java:226)
at hudson.plugins.plot.Plot.addBuild(Plot.java:463)
at hudson.plugins.plot.PlotPublisher.perform(PlotPublisher.java:157)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705)
at hudson.model.Run.execute(Run.java:1695)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
<<<

rename test methods to descibe use case being asserted
cleanup use of Double.parseDouble and replace with Scanner becuase it
extract block to handle case for coalescing nodes in a Nodeset
supports LOCALES, does not throw, handles commas appropriately for locale
and doesn't throw.
Tests updated where comparisons were failing for number format.

SCM/JIRA link daemon
added a comment - 2014-03-11 14:11 Code changed in jenkins
User: Kevin German
Path:
src/main/java/hudson/plugins/plot/XMLSeries.java
src/test/java/hudson/plugins/plot/XMLSeriesTest.java
http://jenkins-ci.org/commit/plot-plugin/96f1acc161a6c536e0b4b4f66e646fd724edf308
Log:
reimplement loadSeries to support all cases described in tests - fix JENKINS-21493
rename test methods to descibe use case being asserted
cleanup use of Double.parseDouble and replace with Scanner becuase it
extract block to handle case for coalescing nodes in a Nodeset
supports LOCALES, does not throw, handles commas appropriately for locale
and doesn't throw.
Tests updated where comparisons were failing for number format.