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

NullPointerException XMLEscapingVariableResolver.java:15

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      FATAL: null
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.beakerbuilder.XMLEscapingVariableResolver.resolve(XMLEscapingVariableResolver.java:15)
      	at org.jenkinsci.plugins.beakerbuilder.XMLEscapingVariableResolver.resolve(XMLEscapingVariableResolver.java:5)
      	at hudson.Util.replaceMacro(Util.java:160)
      	at org.jenkinsci.plugins.beakerbuilder.JobSource.createDefaultJobFile(JobSource.java:65)
      	at org.jenkinsci.plugins.beakerbuilder.FileJobSource.createJobFile(FileJobSource.java:53)
      	at org.jenkinsci.plugins.beakerbuilder.BeakerBuilder.prepareJob(BeakerBuilder.java:130)
      	at org.jenkinsci.plugins.beakerbuilder.BeakerBuilder.perform(BeakerBuilder.java:77)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      	at hudson.model.Build$BuildExecution.build(Build.java:199)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      	at hudson.model.Run.execute(Run.java:1745)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:89)
      	at hudson.model.Executor.run(Executor.java:240)
      

      I'm guessing the inner VariableResolver can return null from .resolve() if the variable was undefined.

        Attachments

          Activity

          Show
          danc86 Dan C added a comment - https://github.com/vjuranek/beaker-builder-plugin/pull/3
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Dan Callaghan
          Path:
          src/main/java/org/jenkinsci/plugins/beakerbuilder/XMLEscapingVariableResolver.java
          src/test/java/org/jenkinsci/plugins/beakerbuilder/StringJobSourceTest.java
          http://jenkins-ci.org/commit/beaker-builder-plugin/9cfac716c2d72b15f392c53e150de51a6957e084
          Log:
          [FIXED JENKINS-27003] handle null for unresolved variables

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Dan Callaghan Path: src/main/java/org/jenkinsci/plugins/beakerbuilder/XMLEscapingVariableResolver.java src/test/java/org/jenkinsci/plugins/beakerbuilder/StringJobSourceTest.java http://jenkins-ci.org/commit/beaker-builder-plugin/9cfac716c2d72b15f392c53e150de51a6957e084 Log: [FIXED JENKINS-27003] handle null for unresolved variables

            People

            • Assignee:
              danc86 Dan C
              Reporter:
              danc86 Dan C
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: