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

Builds with no labels cause null pointer excpetions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ec2-plugin
    • Labels:
      None
    • Environment:
      Linux
    • Similar Issues:

      Description

      When a build has no labels it will throw a null pointer exception due to the change in JENKINS-9773

      Jul 27, 2011 12:04:46 PM hudson.triggers.SafeTimerTask run
      SEVERE: Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@1454f68 failed
      java.lang.NullPointerException
      at hudson.plugins.ec2.EC2Cloud.getTemplate(EC2Cloud.java:127)
      at hudson.plugins.ec2.EC2Cloud.canProvision(EC2Cloud.java:239)
      at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:220)
      at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51)
      at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:308)
      at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)

        Attachments

          Activity

          Hide
          beckje01 Jeff Beck added a comment -

          Fix and test for issue in Pull request #11

          Show
          beckje01 Jeff Beck added a comment - Fix and test for issue in Pull request #11
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jeff Beck
          Path:
          src/main/java/hudson/plugins/ec2/EC2Cloud.java
          src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java
          http://jenkins-ci.org/commit/ec2-plugin/e38d523e522ac233a2c7109364fd86b7e4862a1d
          Log:
          Added test to catch null pointer error when a build has no labels. Fixed the null pointer error. This is a fix for JENKINS-10467

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jeff Beck Path: src/main/java/hudson/plugins/ec2/EC2Cloud.java src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java http://jenkins-ci.org/commit/ec2-plugin/e38d523e522ac233a2c7109364fd86b7e4862a1d Log: Added test to catch null pointer error when a build has no labels. Fixed the null pointer error. This is a fix for JENKINS-10467
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: vjuranek
          Path:
          src/main/java/hudson/plugins/ec2/EC2Cloud.java
          src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java
          http://jenkins-ci.org/commit/ec2-plugin/a1f916ed0aaf9c9e11e399416f3cd01c6c9bccbe
          Log:
          Merge pull request #11 from beckje01/master

          Null Pointer Fix JENKINS-10467

          Compare: https://github.com/jenkinsci/ec2-plugin/compare/86e0902...a1f916e

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: vjuranek Path: src/main/java/hudson/plugins/ec2/EC2Cloud.java src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java http://jenkins-ci.org/commit/ec2-plugin/a1f916ed0aaf9c9e11e399416f3cd01c6c9bccbe Log: Merge pull request #11 from beckje01/master Null Pointer Fix JENKINS-10467 Compare: https://github.com/jenkinsci/ec2-plugin/compare/86e0902...a1f916e
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_ec2 #34
          Added test to catch null pointer error when a build has no labels. Fixed the null pointer error. This is a fix for JENKINS-10467

          jeffbeck :
          Files :

          • src/main/java/hudson/plugins/ec2/EC2Cloud.java
          • src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_ec2 #34 Added test to catch null pointer error when a build has no labels. Fixed the null pointer error. This is a fix for JENKINS-10467 jeffbeck : Files : src/main/java/hudson/plugins/ec2/EC2Cloud.java src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              beckje01 Jeff Beck
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: