Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12045

NPE in analysis core when no build results are available.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: analysis-core-plugin
    • Labels:
      None
    • Environment:
      version 1.33

      Description

      When a job has no results and the static analyis plugins are enabled there are exceptions if you try to view the jobs page http://jenkins/job/myjob

      Dec 08, 2011 4:22:07 PM hudson.ExpressionFactory2$JexlExpression evaluate
      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.<init>(GraphConfigurationView.java:63)
              at hudson.plugins.analysis.graph.UserGraphConfigurationView.<init>(UserGraphConfigurationView.java:36)
              at hudson.plugins.analysis.collector.AnalysisUserGraphConfigurationView.<init>(AnalysisUserGraphConfigurationView.java:39)
              at hudson.plugins.analysis.collector.AnalysisProjectAction.createUserConfiguration(AnalysisProjectAction.java:51)
              at hudson.plugins.analysis.core.AbstractProjectAction.canShowEnableTrendLink(AbstractProjectAction.java:204)
              at sun.reflect.GeneratedMethodAccessor371.invoke(Unknown Source)
      
      
      Dec 08, 2011 4:22:07 PM hudson.ExpressionFactory2$JexlExpression evaluate
      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.<init>(GraphConfigurationView.java:63)
              at hudson.plugins.analysis.graph.UserGraphConfigurationView.<init>(UserGraphConfigurationView.java:36)
              at hudson.plugins.analysis.collector.AnalysisUserGraphConfigurationView.<init>(AnalysisUserGraphConfigurationView.java:39)
              at hudson.plugins.analysis.collector.AnalysisProjectAction.createUserConfiguration(AnalysisProjectAction.java:51)
              at hudson.plugins.analysis.core.AbstractProjectAction.canShowEnableTrendLink(AbstractProjectAction.java:204)
              at sun.reflect.GeneratedMethodAccessor371.invoke(Unknown Source)
      
      

        Activity

        teilo James Nord created issue -
        drulli Ulli Hafner made changes -
        Hide
        drulli Ulli Hafner added a comment -

        Fixed in 1.34.

        Show
        drulli Ulli Hafner added a comment - Fixed in 1.34.
        drulli Ulli Hafner made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            drulli Ulli Hafner
            Reporter:
            teilo James Nord
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: