jenkinsci/analysis-core-plugin — pull request #3 by 8nevil8 (2011-11-21 08:46:31+00:00)
Title: Fix NPE on job saving when previous Builds are absent (baseline == null)

I have faced with NPE while using the latest version of this plugin with PMD and Checkstyle plugins. When I tried to save job configuration and there were no previous builds for current job, I get the following stacktrace:
WARNING: Caught exception evaluating: from.canShowEnableTrendLink(request). Reason: java.lang.NullPointerException
java.lang.NullPointerException
at hudson.plugins.analysis.core.BuildHistory.getBaseline(BuildHistory.java:178)
at hudson.plugins.analysis.graph.GraphConfigurationView.(GraphConfigurationView.java:63)
at hudson.plugins.analysis.graph.UserGraphConfigurationView.(UserGraphConfigurationView.java:36)
at hudson.plugins.analysis.core.AbstractProjectAction.createUserConfiguration(AbstractProjectAction.java:219)
Proposed request solves them. Tested on the latest version of analysis-core, PMD, Checkstyle